Node object

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
3 out of 6 rated this helpful - Rate this topic

Represents a single generic node in the document tree.

Internet Explorer 10

DOM Information

Inheritance Hierarchy

The Node does not inherit from any class or interface.

Members

The Node object does not define any members.

Remarks

The Node interface is the primary datatype for the entire Document Object Model (DOM). It represents a single node in the document tree. While all objects implementing the Node interface expose methods for dealing with children, not all objects implementing the Node interface may have children. For example, text nodes may not have children, and adding children to such nodes results in a DOMException.

The attributes nodeName, nodeValue and attributes are included as a mechanism to get at node information without casting down to the specific derived interface. In cases where there is no obvious mapping of these attributes for a specific nodeType (i.e., nodeValue for an Element or attributes for a Comment), this returns null. Note that the specialized interfaces may contain additional and more convenient mechanisms to get and set the relevant information.

See also

Element

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.