You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
1 year ago | |
|---|---|---|
| .. | ||
| event | 1 year ago | |
| test | 1 year ago | |
| .jshintrc | 1 year ago | |
| .npmignore | 1 year ago | |
| .testem.json | 1 year ago | |
| .travis.yml | 1 year ago | |
| CONTRIBUTION.md | 1 year ago | |
| LICENCE | 1 year ago | |
| README.md | 1 year ago | |
| docs.mli | 1 year ago | |
| document.js | 1 year ago | |
| dom-comment.js | 1 year ago | |
| dom-element.js | 1 year ago | |
| dom-fragment.js | 1 year ago | |
| dom-text.js | 1 year ago | |
| event.js | 1 year ago | |
| index.js | 1 year ago | |
| package.json | 1 year ago | |
| serialize.js | 1 year ago | |
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

