1
0
mirror of https://github.com/php/doc-fr.git synced 2026-03-23 22:52:18 +01:00
Files
archived-doc-fr/reference/dom/constants.xml
2026-02-28 22:54:29 +01:00

486 lines
15 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: a8b6f4dd3a23875b066d4e47ea4a4977a63e0655 Maintainer: yannick 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>Valeur</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>Le nœud est 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>Le nœud est 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>Le nœud est 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>Le nœud est 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>Le nœud est 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>Le nœud est 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>Le nœud est 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>Le nœud est 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>Le nœud est 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>Le nœud est 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>Le nœud est 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>Le nœud est 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 nœud de déclaration d'espace de noms.</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>
Cela désactive la définition de l'espace de noms des éléments lors de l'analyse
lors de l'utilisation de <classname>Dom\HTMLDocument</classname>.
Ceci existe pour la compatibilité ascendante avec
<classname>DOMDocument</classname>.
</simpara>
<caution>
<simpara>
Certaines méthodes DOM dépendent de la définition de l'espace de noms
<acronym>HTML</acronym>.
En utilisant cette option de parseur, le comportement de ces méthodes peut être
influencé.
</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>Valeur</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>
Code d'erreur ne faisant pas partie de la spécification DOM. Destiné aux erreurs PHP.
Obsolète à partir de PHP 8.4.0 car il n'est plus utilisé.
Avant PHP 8.4.0, il était utilisé de manière incohérente pour indiquer
des situations de manque de mémoire.
</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 l'index ou la taille est négatif, ou supérieur à la valeur autorisée.
</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 la plage de texte spécifiée ne tient pas dans une
<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 nœud est inséré à un endroit où il n'a pas sa place</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 nœud est utilisé dans un document différent de celui qui l'a créé.
</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 un caractère invalide ou illégal est spécifié, comme dans un nom.
</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 des données sont spécifiées pour un nœud qui ne supporte pas les données.
</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 une tentative de modification d'un objet est faite alors que les modifications ne sont pas autorisées.
</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 une tentative de référence à un nœud est faite dans un contexte où il n'existe pas.
</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 l'implémentation ne supporte pas le type d'objet ou l'opération demandée.
</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 une tentative d'ajout d'un attribut déjà utilisé ailleurs est faite.
</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 une tentative d'utilisation d'un objet qui n'est pas, ou n'est plus, utilisable est faite.
</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 une chaîne de caractères invalide ou illégale est spécifiée.</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 une tentative de modification du type de l'objet sous-jacent est faite.</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 une tentative de création ou de modification d'un objet est faite d'une manière incorrecte
par rapport aux espaces de noms.
</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 paramètre ou une opération n'est pas supporté par l'objet sous-jacent.
</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 un appel à une méthode telle que insertBefore ou removeChild rendrait le nœud
invalide par rapport à la "validité partielle", cette exception serait levée et
l'opération ne serait pas effectuée.
</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
-->