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.
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/XPath/Axes/child