C.7 Comment Node Mapping
Comment Node Mapping
Infoset to Comment Node[top]
Infoset to Comment Node
A comment information item maps to a
Comment node. The attributes of the corresponding
Comment node are constructed as follows:
13The table contains the mapping of an Infoset information item to a Node
Attribute
Value
11Node.nodeName |
11"#comment" |
11Node.nodeValue |
11same as CharacterData.data |
11Node.nodeType |
11Node.COMMENT_NODE |
11Node.parentNode |
11The [parent] property |
11Node.childNodes |
11empty NodeList |
11Node.firstChild |
11null |
11Node.lastChild |
11null |
11Node.previousSibling |
11null |
11Node.nextSibling |
11null |
11Node.attributes |
11null |
11Node.ownerDocument |
11The document information item |
11Node.namespaceURI |
11null |
11Node.prefix |
11null |
11Node.localName |
11null |
11Node.baseURI |
11null |
11Node.textContent |
11same as Node.nodeValue |
11CharacterData.data |
11
The [content] property encoded using the UTF-16 encoding.
|
11CharacterData.length |
11
The number of 16-bit units needed to encode all ISO character code
contained in the [content] property using the UTF-16 encoding.
|
Comment Node to Infoset[top]
Comment Node to Infoset
A Comment maps to a comment information
item. The properties of the corresponding comment
information item are constructed as follows:
13The table contains the mapping of a Node to the Infoset
Property
Value
| 11[content] |
11CharacterData.data |
| 11[parent] |
11Node.parentNode |
|