--- title: ancestor slug: Web/XPath/Axes/ancestor translation_of: Web/XPath/Axes/ancestor --- L'axe `ancestor` indique tous les ascendants du nœud de contexte, du nœud parent jusqu'au nœud racine.