Update article.md
"...`1` for elements,`3` for text nodes, and a few others ..."
This commit is contained in:
parent
eb2b6c9514
commit
33e4cc258b
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ Each DOM node belongs to a certain class. The classes form a hierarchy. The full
|
||||||
Main DOM node properties are:
|
Main DOM node properties are:
|
||||||
|
|
||||||
`nodeType`
|
`nodeType`
|
||||||
: We can use it to see if a node is a text or an element node. It has a numeric value: `1` -- for elements,`3` -- for text nodes, and few other for other node types. Read-only.
|
: We can use it to see if a node is a text or an element node. It has a numeric value: `1` for elements,`3` for text nodes, and a few others for other node types. Read-only.
|
||||||
|
|
||||||
`nodeName/tagName`
|
`nodeName/tagName`
|
||||||
: For elements, tag name (uppercased unless XML-mode). For non-element nodes `nodeName` describes what it is. Read-only.
|
: For elements, tag name (uppercased unless XML-mode). For non-element nodes `nodeName` describes what it is. Read-only.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue