huanggang 03a863fb53 add node_modules 8 年之前
..
event 03a863fb53 add node_modules 8 年之前
test 03a863fb53 add node_modules 8 年之前
.jshintrc 03a863fb53 add node_modules 8 年之前
.npmignore 03a863fb53 add node_modules 8 年之前
.testem.json 03a863fb53 add node_modules 8 年之前
.travis.yml 03a863fb53 add node_modules 8 年之前
CONTRIBUTION.md 03a863fb53 add node_modules 8 年之前
LICENCE 03a863fb53 add node_modules 8 年之前
README.md 03a863fb53 add node_modules 8 年之前
docs.mli 03a863fb53 add node_modules 8 年之前
document.js 03a863fb53 add node_modules 8 年之前
dom-comment.js 03a863fb53 add node_modules 8 年之前
dom-element.js 03a863fb53 add node_modules 8 年之前
dom-fragment.js 03a863fb53 add node_modules 8 年之前
dom-text.js 03a863fb53 add node_modules 8 年之前
event.js 03a863fb53 add node_modules 8 年之前
index.js 03a863fb53 add node_modules 8 年之前
package.json 03a863fb53 add node_modules 8 年之前
serialize.js 03a863fb53 add node_modules 8 年之前

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