A minimal DOM implementation
JavaScript OCaml HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
event
test
.gitignore
.jshintrc
.testem.json
.travis.yml
CONTRIBUTION.md
LICENCE
README.md
docs.mli
document.js
dom-comment.js
dom-element.js
dom-fragment.js
dom-text.js Add nodeName property to text nodes Mar 15, 2016
event.js
index.js
package.json
serialize.js

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