x-dom

convert a HTML string or file to a serverside DOM tree. Uses domino

Usage no npm install needed!

<script type="module">
  import xDom from 'https://cdn.skypack.dev/x-dom';
</script>

README

x-dom

Build Status](https://travis-ci.org/x-component/x-dom)

./dom.js

fs

x-dom

Read a HTML from file or as string and parse it to an DOM tree as a "document" property of a "window" object

file(filenme, [options,] function(err,window){...})

parse(str, [options,] function(err,window){...})