Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A minimal DOM implementation
JavaScript OCaml

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
event
test
.gitignore
.jshintrc
.testem.json
.travis.yml
LICENCE
README.md
docs.mli
dom-element.js
dom-fragment.js
dom-text.js
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

Something went wrong with that request. Please try again.