c5fd23b54f | ||
---|---|---|
.. | ||
event | ||
test | ||
.jshintrc | ||
.npmignore | ||
.testem.json | ||
.travis.yml | ||
CONTRIBUTION.md | ||
LICENCE | ||
README.md | ||
docs.mli | ||
document.js | ||
dom-comment.js | ||
dom-element.js | ||
dom-fragment.js | ||
dom-text.js | ||
event.js | ||
index.js | ||
package.json | ||
serialize.js |
README.md
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