The nodeType property is part of the browser's internal DOM management.
By inspecting the properties of various objects with an enumeration loop, you can determine some values for this property. If you know the node type, you may be able to take advantage of this when you write more sophisticated scripts. Here is a partial list of node types defined by the DOM specification:
|undefined||null||A member of the attributes collection|
|ELEMENT_NODE||1||HTML element object node|
|ATTRIBUTE_NODE||2||HTML tag attribute object|
|TEXT_NODE||3||Text object node|
|PROCESSING_INSTRUCTION_NODE||7||Processing instruction node|
|DOCUMENT_FRAGMENT_NODE||11||Document fragment node|
The DOM standard is quite large at level 1 and defines a lot of ways in which you can traverse a document structure. The level 2 capabilities are even more extensive. Scripts than can understand node types and DOM document trees will be able to accomplish some amazingly powerful things.