@DOMNoInterfaceObjectAttribute public interface IParentNode extends IElementTraversal
Defines the IParentNode
interface that is implemented by any possible parents.
IElementTraversal
Modifier and Type | Method and Description |
---|---|
int |
getChildElementCount()
The childElementCount attribute must return the number of children of the context object that are elements.
|
HTMLCollection |
getChildren()
Returns the child elements.
|
Element |
getFirstElementChild()
Returns the first child that is an element, and null otherwise.
|
Element |
getLastElementChild()
Returns the last child that is an element, and null otherwise.
|
Element |
querySelector(String selectors)
Returns the first element that is a descendant of node that matches selectors.
|
NodeList |
querySelectorAll(String selectors)
Returns all element descendants of node that match selectors.
|
getNextElementSibling, getPreviousElementSibling
@DOMNameAttribute(name="children") HTMLCollection getChildren()
Returns the child elements.
Value: The children.Element getFirstElementChild()
Returns the first child that is an element, and null otherwise.
Value: The first element child.getFirstElementChild
in interface IElementTraversal
Element getLastElementChild()
Returns the last child that is an element, and null otherwise.
Value: The last element child.getLastElementChild
in interface IElementTraversal
int getChildElementCount()
The childElementCount attribute must return the number of children of the context object that are elements.
Value: The child element count.getChildElementCount
in interface IElementTraversal
@DOMNameAttribute(name="querySelector") @DOMNullableAttribute Element querySelector(String selectors)
Returns the first element that is a descendant of node that matches selectors.
selectors
- The selectors.@DOMNameAttribute(name="querySelectorAll") NodeList querySelectorAll(String selectors)
Returns all element descendants of node that match selectors.
selectors
- The selectors.