[Edge]。読取専用。→、
Node の名前を文字列で返します。
| Node | Node。 |
|---|
ノードの名前を表す文字列。
| インターフェイス | nodeName |
|---|---|
| Attr | Attr.name と同じ |
| CDATASection | #cdata-section |
| Comment | #comment |
| Document | #document |
| DocumentFragment | #document-fragment |
| DocumentType | DocumentType.name と同じ |
| Element | Element.tagName と同じ |
| Entity | 実体名 |
| EntityReference | 実体参照名 |
| Notation | 記法名 |
| ProcessingInstruction | ProcessingInstruction.target と同じ |
| Text | #text |
HTML:
<SPAN id=IdSpan>[SPAN要素]</SPAN>テキスト1<INPUT id=IdInput value="INPUT要素">テキスト2<BR id=IdBr>
JavaScript:
D=IdSpan.nodeName; //SPAN D=IdSpan.nextSibling.nodeName; //#text D=IdInput.nodeName; //INPUT D=IdInput.nextSibling.nodeName; //#comment D=IdBr.nodeName; //BR