Cross-browser XPath 1.0 implementation in JavaScript.