Package Exports
- htmltree
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (htmltree) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
htmltree 
Very simple xml/html -> syntax tree converter. Useful for further mangling your html source.
var htmltree = require('htmltree');
htmltree('<html><body onclick=foo></body></html>', function(err, doc) {
// doc
{
// stuff in the doctype tag
doctype: undefined || string
root: [
... node type, see below ...
]
}
});
Each node entry is an object with the following form.
// node
[
{
type: 'tag' | 'text' | 'comment',
name: 'html', // set for 'tag' nodes
attributes: {
},
children: [
{
tag: body,
attributes: {
onclick: 'foo'
}
},
...
],
// true if the tag node is a void element no body
void: boolean
}
]
license
MIT