libxml-dom

0.1.6 • Public • Published

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

/libxml-dom/

    Package Sidebar

    Install

    npm i libxml-dom

    Weekly Downloads

    1

    Version

    0.1.6

    License

    WTFPL

    Last publish

    Collaborators

    • skrat