Own JS code

XPath

Récupérer *un* nœud DOM via une XPath :

function getNode(xpathStmt, node) {
	return document.evaluate( xpathStmt, node, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null ).singleNodeValue;
}