libxml-dom
v0.1.6
Published
Thin wrapper for libxmljs providing W3C DOM API
Downloads
10
Readme
W3C DOM compatible API to libxml2
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.
What's supported
- 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