Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit il y a 3 ans
..
event First Commit il y a 3 ans
test First Commit il y a 3 ans
.DS_Store First Commit il y a 3 ans
.jshintrc First Commit il y a 3 ans
.npmignore First Commit il y a 3 ans
.testem.json First Commit il y a 3 ans
.travis.yml First Commit il y a 3 ans
CONTRIBUTION.md First Commit il y a 3 ans
LICENCE First Commit il y a 3 ans
README.md First Commit il y a 3 ans
docs.mli First Commit il y a 3 ans
document.js First Commit il y a 3 ans
dom-comment.js First Commit il y a 3 ans
dom-element.js First Commit il y a 3 ans
dom-fragment.js First Commit il y a 3 ans
dom-text.js First Commit il y a 3 ans
event.js First Commit il y a 3 ans
index.js First Commit il y a 3 ans
package.json First Commit il y a 3 ans
serialize.js First Commit il y a 3 ans

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