mirror of
https://github.com/php/doc-es.git
synced 2026-03-24 07:22:16 +01:00
486 lines
15 KiB
XML
486 lines
15 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: a8b6f4dd3a23875b066d4e47ea4a4977a63e0655 Maintainer: PhilDaiguille Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
<chapter xml:id="dom.constants" xmlns="http://docbook.org/ns/docbook">
|
|
&reftitle.constants;
|
|
&extension.constants;
|
|
<table>
|
|
<title>Constantes XML</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>&Constants;</entry>
|
|
<entry>Valor</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row xml:id="constant.xml-element-node">
|
|
<entry>
|
|
<constant>XML_ELEMENT_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>1</entry>
|
|
<entry>El nodo es un <classname>DOMElement</classname> / <classname>Dom\Element</classname></entry>
|
|
</row>
|
|
<row xml:id="constant.xml-attribute-node">
|
|
<entry>
|
|
<constant>XML_ATTRIBUTE_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>2</entry>
|
|
<entry>El nodo es un <classname>DOMAttr</classname> / <classname>Dom\Attr</classname></entry>
|
|
</row>
|
|
<row xml:id="constant.xml-text-node">
|
|
<entry>
|
|
<constant>XML_TEXT_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>3</entry>
|
|
<entry>El nodo es un <classname>DOMText</classname> / <classname>Dom\Text</classname></entry>
|
|
</row>
|
|
<row xml:id="constant.xml-cdata-section-node">
|
|
<entry>
|
|
<constant>XML_CDATA_SECTION_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>4</entry>
|
|
<entry>El nodo es un <classname>DOMCharacterData</classname> / <classname>Dom\CharacterData</classname></entry>
|
|
</row>
|
|
<row xml:id="constant.xml-entity-ref-node">
|
|
<entry>
|
|
<constant>XML_ENTITY_REF_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>5</entry>
|
|
<entry>El nodo es un <classname>DOMEntityReference</classname> / <classname>Dom\EntityReference</classname></entry>
|
|
</row>
|
|
<row xml:id="constant.xml-entity-node">
|
|
<entry>
|
|
<constant>XML_ENTITY_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>6</entry>
|
|
<entry>El nodo es un <classname>DOMEntity</classname> / <classname>Dom\Entity</classname></entry>
|
|
</row>
|
|
<row xml:id="constant.xml-pi-node">
|
|
<entry>
|
|
<constant>XML_PI_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>7</entry>
|
|
<entry>El nodo es un <classname>DOMProcessingInstruction</classname> / <classname>Dom\ProcessingInstruction</classname></entry>
|
|
</row>
|
|
<row xml:id="constant.xml-comment-node">
|
|
<entry>
|
|
<constant>XML_COMMENT_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>8</entry>
|
|
<entry>El nodo es un <classname>DOMComment</classname> / <classname>Dom\Comment</classname></entry>
|
|
</row>
|
|
<row xml:id="constant.xml-document-node">
|
|
<entry>
|
|
<constant>XML_DOCUMENT_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>9</entry>
|
|
<entry>El nodo es un <classname>DOMDocument</classname> / <classname>Dom\Document</classname></entry>
|
|
</row>
|
|
<row xml:id="constant.xml-document-type-node">
|
|
<entry>
|
|
<constant>XML_DOCUMENT_TYPE_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>10</entry>
|
|
<entry>El nodo es un <classname>DOMDocumentType</classname> / <classname>Dom\DocumentType</classname></entry>
|
|
</row>
|
|
<row xml:id="constant.xml-document-frag-node">
|
|
<entry>
|
|
<constant>XML_DOCUMENT_FRAG_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>11</entry>
|
|
<entry>El nodo es un <classname>DOMDocumentFragment</classname> / <classname>Dom\DocumentFragment</classname></entry>
|
|
</row>
|
|
<row xml:id="constant.xml-notation-node">
|
|
<entry>
|
|
<constant>XML_NOTATION_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>12</entry>
|
|
<entry>El nodo es un <classname>DOMNotation</classname> / <classname>Dom\Notation</classname></entry>
|
|
</row>
|
|
<row xml:id="constant.xml-html-document-node">
|
|
<entry>
|
|
<constant>XML_HTML_DOCUMENT_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>13</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.xml-dtd-node">
|
|
<entry>
|
|
<constant>XML_DTD_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>14</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.xml-element-decl-node">
|
|
<entry>
|
|
<constant>XML_ELEMENT_DECL_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>15</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.xml-attribute-decl-node">
|
|
<entry>
|
|
<constant>XML_ATTRIBUTE_DECL_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>16</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.xml-entity-decl-node">
|
|
<entry>
|
|
<constant>XML_ENTITY_DECL_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>17</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.xml-namespace-decl-node">
|
|
<entry>
|
|
<constant>XML_NAMESPACE_DECL_NODE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>18</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.xml-attribute-cdata">
|
|
<entry>
|
|
<constant>XML_ATTRIBUTE_CDATA</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>1</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.xml-attribute-id">
|
|
<entry>
|
|
<constant>XML_ATTRIBUTE_ID</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>2</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.xml-attribute-idref">
|
|
<entry>
|
|
<constant>XML_ATTRIBUTE_IDREF</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>3</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.xml-attribute-idrefs">
|
|
<entry>
|
|
<constant>XML_ATTRIBUTE_IDREFS</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>4</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.xml-attribute-entity">
|
|
<entry>
|
|
<constant>XML_ATTRIBUTE_ENTITY</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>5</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.xml-attribute-nmtoken">
|
|
<entry>
|
|
<constant>XML_ATTRIBUTE_NMTOKEN</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>7</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.xml-attribute-nmtokens">
|
|
<entry>
|
|
<constant>XML_ATTRIBUTE_NMTOKENS</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>8</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.xml-attribute-enumeration">
|
|
<entry>
|
|
<constant>XML_ATTRIBUTE_ENUMERATION</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>9</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.xml-attribute-notation">
|
|
<entry>
|
|
<constant>XML_ATTRIBUTE_NOTATION</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>10</entry>
|
|
<entry/>
|
|
</row>
|
|
<row xml:id="constant.xml-local-namespace">
|
|
<entry>
|
|
<constant>XML_LOCAL_NAMESPACE</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry></entry>
|
|
<entry>Un nodo de declaración de espacio de nombres.</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
<table>
|
|
<title>Constantes HTML</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>&Constants;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row xml:id="constant.dom-html-no-default-ns">
|
|
<entry>
|
|
<constant>Dom\HTML_NO_DEFAULT_NS</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>
|
|
<simpara>
|
|
Esto desactiva la definición del espacio de nombres de los elementos durante el análisis
|
|
al utilizar <classname>Dom\HTMLDocument</classname>.
|
|
Esto existe para la compatibilidad ascendente con
|
|
<classname>DOMDocument</classname>.
|
|
</simpara>
|
|
<caution>
|
|
<simpara>
|
|
Algunos métodos DOM dependen de la definición del espacio de nombres
|
|
<acronym>HTML</acronym>.
|
|
Al utilizar esta opción del analizador, el comportamiento de estos métodos puede ser
|
|
influenciado.
|
|
</simpara>
|
|
</caution>
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
<table>
|
|
<title>Constantes <classname>DOMException</classname> / <classname>Dom\Exception</classname></title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>&Constants;</entry>
|
|
<entry>Valor</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row xml:id="constant.dom-php-err">
|
|
<entry>
|
|
<constant>DOM_PHP_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>0</entry>
|
|
<entry>
|
|
Código de error que no forma parte de la especificación DOM. Destinado a errores PHP.
|
|
Deprecado a partir de PHP 8.4.0 ya que ya no se utiliza.
|
|
Antes de PHP 8.4.0, se utilizaba de manera inconsistente para indicar
|
|
situaciones de falta de memoria.
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.dom-index-size-err">
|
|
<entry>
|
|
<constant>DOM_INDEX_SIZE_ERR</constant> / <constant>Dom\INDEX_SIZE_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>1</entry>
|
|
<entry>
|
|
Si el índice o el tamaño es negativo, o superior al valor permitido.
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.domstring-size-err">
|
|
<entry>
|
|
<constant>DOMSTRING_SIZE_ERR</constant> / <constant>Dom\STRING_SIZE_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>2</entry>
|
|
<entry>
|
|
Si el rango de texto especificado no cabe en una
|
|
<type>string</type>.
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.dom-hierarchy-request-err">
|
|
<entry>
|
|
<constant>DOM_HIERARCHY_REQUEST_ERR</constant> / <constant>Dom\HIERARCHY_REQUEST_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>3</entry>
|
|
<entry>Si un nodo es insertado en un lugar donde no tiene cabida</entry>
|
|
</row>
|
|
<row xml:id="constant.dom-wrong-document-err">
|
|
<entry>
|
|
<constant>DOM_WRONG_DOCUMENT_ERR</constant> / <constant>Dom\WRONG_DOCUMENT_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>4</entry>
|
|
<entry>
|
|
Si un nodo es utilizado en un documento diferente al que lo creó.
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.dom-invalid-character-err">
|
|
<entry>
|
|
<constant>DOM_INVALID_CHARACTER_ERR</constant> / <constant>Dom\INVALID_CHARACTER_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>5</entry>
|
|
<entry>
|
|
Si se especifica un carácter inválido o ilegal, como en un nombre.
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.dom-no-data-allowed-err">
|
|
<entry>
|
|
<constant>DOM_NO_DATA_ALLOWED_ERR</constant> / <constant>Dom\NO_DATA_ALLOWED_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>6</entry>
|
|
<entry>
|
|
Si se especifican datos para un nodo que no soporta datos.
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.dom-no-modification-allowed-err">
|
|
<entry>
|
|
<constant>DOM_NO_MODIFICATION_ALLOWED_ERR</constant> / <constant>Dom\NO_MODIFICATION_ALLOWED_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>7</entry>
|
|
<entry>
|
|
Si se intenta modificar un objeto cuando las modificaciones no están permitidas.
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.dom-not-found-err">
|
|
<entry>
|
|
<constant>DOM_NOT_FOUND_ERR</constant> / <constant>Dom\NOT_FOUND_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>8</entry>
|
|
<entry>
|
|
Si se intenta referenciar un nodo en un contexto donde no existe.
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.dom-not-supported-err">
|
|
<entry>
|
|
<constant>DOM_NOT_SUPPORTED_ERR</constant> / <constant>Dom\NOT_SUPPORTED_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>9</entry>
|
|
<entry>
|
|
Si la implementación no soporta el tipo de objeto o la operación solicitada.
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.dom-inuse-attribute-err">
|
|
<entry>
|
|
<constant>DOM_INUSE_ATTRIBUTE_ERR</constant> / <constant>Dom\INUSE_ATTRIBUTE_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>10</entry>
|
|
<entry>
|
|
Si se intenta añadir un atributo que ya está siendo utilizado en otro lugar.
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.dom-invalid-state-err">
|
|
<entry>
|
|
<constant>DOM_INVALID_STATE_ERR</constant> / <constant>Dom\INVALID_STATE_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>11</entry>
|
|
<entry>
|
|
Si se intenta utilizar un objeto que no es, o ya no es, utilizable.
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.dom-syntax-err">
|
|
<entry>
|
|
<constant>DOM_SYNTAX_ERR</constant> / <constant>Dom\SYNTAX_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>12</entry>
|
|
<entry>Si se especifica una cadena de caracteres inválida o ilegal.</entry>
|
|
</row>
|
|
<row xml:id="constant.dom-invalid-modification-err">
|
|
<entry>
|
|
<constant>DOM_INVALID_MODIFICATION_ERR</constant> / <constant>Dom\INVALID_MODIFICATION_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>13</entry>
|
|
<entry>Si se intenta modificar el tipo del objeto subyacente.</entry>
|
|
</row>
|
|
<row xml:id="constant.dom-namespace-err">
|
|
<entry>
|
|
<constant>DOM_NAMESPACE_ERR</constant> / <constant>Dom\NAMESPACE_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>14</entry>
|
|
<entry>
|
|
Si se intenta crear o modificar un objeto de manera incorrecta
|
|
con respecto a los espacios de nombres.
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.dom-invalid-access-err">
|
|
<entry>
|
|
<constant>DOM_INVALID_ACCESS_ERR</constant> / <constant>Dom\INVALID_ACCESS_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>15</entry>
|
|
<entry>
|
|
Si un parámetro o una operación no es soportada por el objeto subyacente.
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.dom-validation-err">
|
|
<entry>
|
|
<constant>DOM_VALIDATION_ERR</constant> / <constant>Dom\VALIDATION_ERR</constant>
|
|
(<type>int</type>)
|
|
</entry>
|
|
<entry>16</entry>
|
|
<entry>
|
|
Si una llamada a un método como insertBefore o removeChild haría que el nodo
|
|
fuera inválido con respecto a la "valididad parcial", se lanzaría esta excepción y
|
|
la operación no se realizaría.
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</chapter>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|