ancestor

The ancestor axis indicates all the ancestors of the context node beginning with the parent node and traveling through to the root node.

© 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/ancestor