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.
 
 
 
 
 
xuma 061bf09bc8 one key push update 2 years ago
..
event one key push update 2 years ago
test one key push update 2 years ago
.jshintrc one key push update 2 years ago
.npmignore one key push update 2 years ago
.testem.json one key push update 2 years ago
.travis.yml one key push update 2 years ago
CONTRIBUTION.md one key push update 2 years ago
LICENCE one key push update 2 years ago
README.md one key push update 2 years ago
docs.mli one key push update 2 years ago
document.js one key push update 2 years ago
dom-comment.js one key push update 2 years ago
dom-element.js one key push update 2 years ago
dom-fragment.js one key push update 2 years ago
dom-text.js one key push update 2 years ago
event.js one key push update 2 years ago
index.js one key push update 2 years ago
package.json one key push update 2 years ago
serialize.js one key push update 2 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