764 |
|
|
765 |
<p>A <a href="#DocumentType"><code>DocumentType</code></a> interface |
<p>A <a href="#DocumentType"><code>DocumentType</code></a> interface |
766 |
<em class=rfc2119>MAY</em> contain zero or more |
<em class=rfc2119>MAY</em> contain zero or more |
767 |
<a href="#ProcessingInstruction"><code>ProcessingInstruction</code></a> |
<code>ProcessingInstruction</code> nodes in the <code>NodeList</code> object |
768 |
nodes in the <code>NodeList</code> object contained in the |
contained in the <code>childNodes</code> attribute of the |
|
<code>childNodes</code> attribute of the |
|
769 |
<a href="#DocumentType"><code>DocumentType</code></a> node.</p> |
<a href="#DocumentType"><code>DocumentType</code></a> node.</p> |
770 |
|
|
771 |
<p>If the <a href="#DocumentType"><code>DocumentType</code></a> node is created |
<p>If the <a href="#DocumentType"><code>DocumentType</code></a> node is created |
772 |
during the process to create a <abbr>DOM</abbr> from an <abbr>XML</abbr> |
during the process to create a <abbr>DOM</abbr> from an <abbr>XML</abbr> |
773 |
document, the <code>NodeList</code> object in the <code>childNodes</code> |
document, the <code>NodeList</code> object in the <code>childNodes</code> |
774 |
object <em class=rfc2119>MUST</em> contains the |
object <em class=rfc2119>MUST</em> contains the |
775 |
<a href="#ProcessingInstruction"><code>ProcessingInstruction</code></a> |
<code>ProcessingInstruction</code> nodes representing the processing |
776 |
nodes representing the processing instructions in the document type |
instructions in the document type definition of the document processed |
|
definition of the document processed |
|
777 |
<cite class="bibref normative">[<a href="#ref-XML10">XML10</a>, |
<cite class="bibref normative">[<a href="#ref-XML10">XML10</a>, |
778 |
<a href="#ref-XML11">XML11</a>]</cite> by the <abbr>XML</abbr> processor. If |
<a href="#ref-XML11">XML11</a>]</cite> by the <abbr>XML</abbr> processor. If |
779 |
the <a href="#DocumentType"><code>DocumentType</code></a> node is marked as |
the <a href="#DocumentType"><code>DocumentType</code></a> node is marked as |
788 |
<cite class="bibref normative">[<a href="#ref-INFOSET">INFOSET</a>]</cite>, |
<cite class="bibref normative">[<a href="#ref-INFOSET">INFOSET</a>]</cite>, |
789 |
the <code>NodeList</code> object in the <code>childNodes</code> attribute |
the <code>NodeList</code> object in the <code>childNodes</code> attribute |
790 |
of the node <em class=rfc2119>MUST</em> contain the |
of the node <em class=rfc2119>MUST</em> contain the |
791 |
<a href="#ProcessingInstruction"><code>ProcessingInstruction</code></a> nodes |
<code>ProcessingInstruction</code> nodes created from any |
|
created from any |
|
792 |
<a href="http://www.w3.org/TR/2004/REC-xml-infoset-20040204/#infoitem.pi">processing |
<a href="http://www.w3.org/TR/2004/REC-xml-infoset-20040204/#infoitem.pi">processing |
793 |
instruction information items</a> in the list in the [children] property of the |
instruction information items</a> in the list in the [children] property of the |
794 |
<a href="http://www.w3.org/TR/2004/REC-xml-infoset-20040204/#infoitem.doctype">document |
<a href="http://www.w3.org/TR/2004/REC-xml-infoset-20040204/#infoitem.doctype">document |
797 |
<p>If a <a href="#DocumentType"><code>DocumentType</code></a> node is mapped to |
<p>If a <a href="#DocumentType"><code>DocumentType</code></a> node is mapped to |
798 |
a document type declaration information item, the list in the [children] |
a document type declaration information item, the list in the [children] |
799 |
property <em class=rfc2119>MUST</em> contain the processng instruction |
property <em class=rfc2119>MUST</em> contain the processng instruction |
800 |
information items created from the |
information items created from the <code>ProcessingInstruction</code> nodes |
|
<a href="#ProcessingInstruction"><code>ProcessingInstruction</code></a> nodes |
|
801 |
in the <code>NodeList</code> object in the <code>childNodes</code> attribute |
in the <code>NodeList</code> object in the <code>childNodes</code> attribute |
802 |
of the <a href="#DocumentType"><code>DocumentType</code></a> node.</p> |
of the <a href="#DocumentType"><code>DocumentType</code></a> node.</p> |
803 |
|
|
1036 |
<a href="#elementTypes"><code>elementTypes</code></a> attribute of the |
<a href="#elementTypes"><code>elementTypes</code></a> attribute of the |
1037 |
node. If there is no such node, it <em class=rfc2119>MUST</em> return |
node. If there is no such node, it <em class=rfc2119>MUST</em> return |
1038 |
<code>null</code>.</p></dd> |
<code>null</code>.</p></dd> |
|
<dt><dfn id=getElementTypeDefinitionNode class=dom-method><code>getElementTypeDefinitionNode</code></dfn>, |
|
|
method</dt> |
|
|
<dd><p>Returns the |
|
|
<a href="#ElementTypeDefinition"><code>ElementTypeDefinition</code></a> node |
|
|
with the specified name.</p> |
|
|
|
|
|
<p>The |
|
|
<dfn id=getElementTypeDefinitionNode-name class=dom-param><var>name</var></dfn> |
|
|
parameter is the name of the element type.</p> |
|
|
|
|
|
<p>When invoked, the method <em class=rfc2119>MUST</em> return the |
|
|
<a href="#ElementTypeDefinition"><code>ElementTypeDefinition</code></a> node, |
|
|
whose <a href="#nodeName"><code>nodeName</code></a> is equal to |
|
|
<a href="#getElementTypeDefinitionNode-name"><var>name</var></a>, in the |
|
|
<code>NamedNodeMap</code> object in the |
|
|
<a href="#elementTypes"><code>elementTypes</code></a> attribute of the |
|
|
node. If there is no such node, it <em class=rfc2119>MUST</em> return |
|
|
<code>null</code>.</p></dd> |
|
1039 |
<dt><dfn id=getGeneralEntityNode class=dom-method><code>getGeneralEntityNode</code></dfn>, |
<dt><dfn id=getGeneralEntityNode class=dom-method><code>getGeneralEntityNode</code></dfn>, |
1040 |
method</dt> |
method</dt> |
1041 |
<dd><p>Returns the <a href="#Entity"><code>Entity</code></a> node |
<dd><p>Returns the <a href="#Entity"><code>Entity</code></a> node |
1042 |
with the specified name.</p> |
with the specified name.</p> |
1043 |
|
|
1044 |
<p>The <dfn id=getEntityNode-name class=dom-param><var>name</var></dfn> |
<p>The |
1045 |
|
<dfn id=getGeneralEntityNode-name class=dom-param><var>name</var></dfn> |
1046 |
parameter is the name of the general entity.</p> |
parameter is the name of the general entity.</p> |
1047 |
|
|
1048 |
<p>When invoked, the method <em class=rfc2119>MUST</em> return the |
<p>When invoked, the method <em class=rfc2119>MUST</em> return the |
1049 |
<a href="#Entity"><code>Entity</code></a> node, |
<a href="#Entity"><code>Entity</code></a> node, |
1050 |
whose <a href="#nodeName"><code>nodeName</code></a> is equal to |
whose <a href="#nodeName"><code>nodeName</code></a> is equal to |
1051 |
<a href="#getEntityNode-name"><var>name</var></a>, in the |
<a href="#getGeneralEntityNode-name"><var>name</var></a>, in the |
1052 |
<code>NamedNodeMap</code> object in the |
<code>NamedNodeMap</code> object in the |
1053 |
<a href="#entities"><code>entities</code></a> attribute of the |
<a href="#entities"><code>entities</code></a> attribute of the |
1054 |
node. If there is no such node, it <em class=rfc2119>MUST</em> return |
node. If there is no such node, it <em class=rfc2119>MUST</em> return |
1128 |
<a href="#AttributeDefinition">AttributeDefinition</a> <a href="#getAttributeDefinitionNode">getAttributeDefinitionNode</a> |
<a href="#AttributeDefinition">AttributeDefinition</a> <a href="#getAttributeDefinitionNode">getAttributeDefinitionNode</a> |
1129 |
(in DOMString <a href="#getAttributeDefinitionNode-name"><var>name</var></a>); |
(in DOMString <a href="#getAttributeDefinitionNode-name"><var>name</var></a>); |
1130 |
void <a href="#setAttributeDefinitionNode">setAttributeDefinitionNode</a> |
void <a href="#setAttributeDefinitionNode">setAttributeDefinitionNode</a> |
1131 |
(in <a href="#AttributeDefinition">AttributeDefinition</a> <a href="#setAttributeDefinitionNode-name"><var>node</var></a>) |
(in <a href="#AttributeDefinition">AttributeDefinition</a> <a href="#setAttributeDefinitionNode-node"><var>node</var></a>) |
1132 |
raises (DOMException); |
raises (DOMException); |
1133 |
}</code></pre> |
}</code></pre> |
1134 |
|
|
1292 |
<p>On getting, the attribute <em class=rfc2119>MUST</em> return an |
<p>On getting, the attribute <em class=rfc2119>MUST</em> return an |
1293 |
<a href="#ElementTypeDefinition"><code>ElementTypeDefinition</code></a> node. |
<a href="#ElementTypeDefinition"><code>ElementTypeDefinition</code></a> node. |
1294 |
It <em class=rfc2119>MUST</em> be such a node that whose |
It <em class=rfc2119>MUST</em> be such a node that whose |
1295 |
<a href="#attributeDefinitons"><code>attributeDefinitions</code></a> |
<a href="#attributeDefinitions"><code>attributeDefinitions</code></a> |
1296 |
attribute contains the <code>NamedNodeMap</code> object that contains |
attribute contains the <code>NamedNodeMap</code> object that contains |
1297 |
the <a href="#AttributeDefinition"><code>AttributeDefinition</code></a> |
the <a href="#AttributeDefinition"><code>AttributeDefinition</code></a> |
1298 |
node. If there is no such an |
node. If there is no such an |
1706 |
<dd><cite><a href="http://suika.fam.cx/gate/2005/sw/manakai/DOM%20Extensions"> |
<dd><cite><a href="http://suika.fam.cx/gate/2005/sw/manakai/DOM%20Extensions"> |
1707 |
manakai's <abbr>DOM</abbr> Extensions</a></cite>, editor's draft. Work in |
manakai's <abbr>DOM</abbr> Extensions</a></cite>, editor's draft. Work in |
1708 |
progress.</dd> |
progress.</dd> |
1709 |
<dt id=ref-XML10">XML10</dt> |
<dt id=ref-XML10>XML10</dt> |
1710 |
<dd><cite><a href="http://www.w3.org/TR/2006/REC-xml-20060816">Extensible |
<dd><cite><a href="http://www.w3.org/TR/2006/REC-xml-20060816">Extensible |
1711 |
Markup Language (<abbr>XML</abbr>) 1.0 (Fourth Edition)</a></cite>, |
Markup Language (<abbr>XML</abbr>) 1.0 (Fourth Edition)</a></cite>, |
1712 |
<abbr>W3C</abbr> Recommendation, <time datetime=2006-08-16>16 August |
<abbr>W3C</abbr> Recommendation, <time datetime=2006-08-16>16 August |