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

