child
The child
axis indicates the children of the context node. If an XPath expression does not specify an axis, the child
axis is understood by default. Since only the root node or element nodes have children, any other use will select nothing.
Specifications
Specification | Status | Comment |
---|---|---|
XPath 3.1 The definition of 'child' in that specification. |
Recommendation | |
XPath 3.0 The definition of 'child' in that specification. |
Recommendation | |
XPath 2.0 The definition of 'child' in that specification. |
Recommendation | |
XPath 1.0 The definition of 'child' in that specification. |
Recommendation | Initial definition. |
Browser compatibility
No compatibility data found for xpath.axes.child
.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.