奇点
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.
 
 
 
 
zhangsiyu 8c114f05b0 12 3 years ago
..
event 12 3 years ago
test 12 3 years ago
.jshintrc 12 3 years ago
.npmignore 12 3 years ago
.testem.json 12 3 years ago
.travis.yml 12 3 years ago
CONTRIBUTION.md 12 3 years ago
LICENCE 12 3 years ago
README.md 12 3 years ago
docs.mli 12 3 years ago
document.js 12 3 years ago
dom-comment.js 12 3 years ago
dom-element.js 12 3 years ago
dom-fragment.js 12 3 years ago
dom-text.js 12 3 years ago
event.js 12 3 years ago
index.js 12 3 years ago
package.json 12 3 years ago
serialize.js 12 3 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