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.
lion bcd5d1efca
修改
2 months ago
..
event 修改 2 months ago
test 修改 2 months ago
.jshintrc 修改 2 months ago
.testem.json 修改 2 months ago
.travis.yml 修改 2 months ago
CONTRIBUTION.md 修改 2 months ago
LICENCE 修改 2 months ago
README.md 修改 2 months ago
docs.mli 修改 2 months ago
document.js 修改 2 months ago
dom-comment.js 修改 2 months ago
dom-element.js 修改 2 months ago
dom-fragment.js 修改 2 months ago
dom-text.js 修改 2 months ago
event.js 修改 2 months ago
index.js 修改 2 months ago
package.json 修改 2 months ago
serialize.js 修改 2 months 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