Update article.md

"...`1` for elements,`3` for text nodes, and a few others ..."
This commit is contained in:
paroche 2019-10-17 23:31:06 -06:00 committed by GitHub
parent eb2b6c9514
commit 33e4cc258b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.