.. | ||
event | ||
test | ||
.jshintrc | ||
.npmignore | ||
.testem.json | ||
.travis.yml | ||
CONTRIBUTION.md | ||
docs.mli | ||
document.js | ||
dom-comment.js | ||
dom-element.js | ||
dom-fragment.js | ||
dom-text.js | ||
event.js | ||
index.js | ||
LICENCE | ||
package.json | ||
README.md | ||
serialize.js |
min-document
A minimal DOM implementation
Example
var document = require("min-document")
var div = document.createElement("div")
div.className = "foo bar"
var span = document.createElement("span")
div.appendChild(span)
span.textContent = "Hello!"
/* <div class="foo bar">
<span>Hello!</span>
</div>
*/
var html = String(div)
Installation
npm install min-document
Contributors
- Raynos