GT2/GT2-Android/node_modules/min-document
Ren Ren Juan c5fd23b54f Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
..
event Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
test Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
.jshintrc Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
.npmignore Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
.testem.json Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
.travis.yml Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
CONTRIBUTION.md Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
LICENCE Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
README.md Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
docs.mli Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
document.js Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
dom-comment.js Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
dom-element.js Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
dom-fragment.js Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
dom-text.js Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
event.js Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
index.js Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
package.json Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
serialize.js Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11: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