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.
 
 
 
 
 
396316021 2632b010f6 依赖 6 months ago
..
event 依赖 6 months ago
test 依赖 6 months ago
.jshintrc 依赖 6 months ago
.npmignore 依赖 6 months ago
.testem.json 依赖 6 months ago
.travis.yml 依赖 6 months ago
CONTRIBUTION.md 依赖 6 months ago
LICENCE 依赖 6 months ago
README.md 依赖 6 months ago
docs.mli 依赖 6 months ago
document.js 依赖 6 months ago
dom-comment.js 依赖 6 months ago
dom-element.js 依赖 6 months ago
dom-fragment.js 依赖 6 months ago
dom-text.js 依赖 6 months ago
event.js 依赖 6 months ago
index.js 依赖 6 months ago
package.json 依赖 6 months ago
serialize.js 依赖 6 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