IParentNode class

IParentNode class

Defines the IParentNode interface that is implemented by any possible parents.

The IParentNode type exposes the following members:

Properties

PropertyDescription
childrenReturns the child elements.
first_element_childReturns the first child that is an element, and null otherwise.
last_element_childReturns the last child that is an element, and null otherwise.
child_element_countThe childElementCount attribute must return the number of children of the context object that are elements.
previous_element_siblingReturns the previous sibling element node of this element. null if this element has no element sibling nodes that come before this one in the document tree.
next_element_siblingReturns the next sibling element node of this element. null if this element has no element sibling nodes that come after this one in the document tree.

Methods

MethodDescription
query_selectorReturns the first element that is a descendant of node that matches selectors.
query_selector_allReturns all element descendants of node that match selectors.

See Also