Skip to content

skrat/libxml-dom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Thin wrapper for libxmljs providing W3C DOM API

Resources

Stars

Watchers

Forks

Packages

No packages published