GT2/GT2-iOS/node_modules/min-document
Ren Ren Juan 30eef7d036 correct tree err 2018-02-12 17:26:06 +00:00
..
event correct tree err 2018-02-12 17:26:06 +00:00
test correct tree err 2018-02-12 17:26:06 +00:00
.jshintrc correct tree err 2018-02-12 17:26:06 +00:00
.npmignore correct tree err 2018-02-12 17:26:06 +00:00
.testem.json correct tree err 2018-02-12 17:26:06 +00:00
.travis.yml correct tree err 2018-02-12 17:26:06 +00:00
CONTRIBUTION.md correct tree err 2018-02-12 17:26:06 +00:00
LICENCE correct tree err 2018-02-12 17:26:06 +00:00
README.md correct tree err 2018-02-12 17:26:06 +00:00
docs.mli correct tree err 2018-02-12 17:26:06 +00:00
document.js correct tree err 2018-02-12 17:26:06 +00:00
dom-comment.js correct tree err 2018-02-12 17:26:06 +00:00
dom-element.js correct tree err 2018-02-12 17:26:06 +00:00
dom-fragment.js correct tree err 2018-02-12 17:26:06 +00:00
dom-text.js correct tree err 2018-02-12 17:26:06 +00:00
event.js correct tree err 2018-02-12 17:26:06 +00:00
index.js correct tree err 2018-02-12 17:26:06 +00:00
package.json correct tree err 2018-02-12 17:26:06 +00:00
serialize.js correct tree err 2018-02-12 17:26:06 +00:00

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