Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.27 KB

File metadata and controls

43 lines (36 loc) · 1.27 KB

W3C DOM compatible API to libxml2

Circle CI

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