1-Here are the returned values for different types of node.
Interface | nodeName |
---|---|
Attr | same as Attr.name |
CDATASection | "#cdata-section" |
Comment | "#comment" |
Document | "#document" |
DocumentFragment | "#document-fragment" |
DocumentType | same as DocumentType.name |
Element | same as Element.tagName |
Entity | entity name |
EntityReference | name of entity reference |
Notation | notation name |
ProcessingInstruction | same as ProcessingInstruction.target |
Text | "#text" |