This exists due to frustration from poor performance of xmldom.
W3C DOM comptible API to libxmljs
including Selectors API (.querySelector
function). Everything here so far is incomplete and implemented
partially. Use with caution, contributions welcome.
CSS query to XPath is done with modified version of css2xpath.
- Node.childNodes
- Node.textContent
- /
- Document.documentElement
- Document.querySelector(...)
- Document.querySelectorAll(...)
- /
- Element.attributes
- Element.children
- Element.parentNode
- Element.tagName
- Element.getAttribute(...)
- Element.querySelector(...)
- Element.querySelectorAll(...)
- /
- NodeList.length
- NodeList.item(...)
- NodeList.map(...)*
- NodeList.filter(...)*
- /
- NamedNodeMap.length
- NamedNodeMap.item(...)
- /
- HTMLCollection.length
- HTMLCollection.item(...)
*extension methods not in W3C DOM API