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

README.md

min-document

build status dependency status

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

MIT Licenced