표준은 아니지만 웹개발자를 위하여 거의 표준처럼 사용된다.
노드의 이름을 조회할 수 있다.
노드의 이름은 다음의 값 중에서 하나일 수 있다.
Interface | NodeName value |
---|---|
Attr | Attr.prototype.name |
CDATASection | "#cdata-section" |
Comment | "#comment" |
Document | "#document" |
DocumentFragment | "#document-fragment" |
DocumentType | documentType.prototype.name |
Element | Element.prototype.tagName |
ProcessingInstruction | ProcessingInstruction.prototype.target |
Text | "#text" |
node.nodeName
분류 | 값 | 설명 |
---|---|---|
writable | no |