A minimal DOM implementation
JavaScript OCaml HTML
Latest commit 1b5402d Dec 16, 2016 @Raynos committed on GitHub Merge pull request #49 from PixnBits/patch-1
Update license metadata
Permalink
Failed to load latest commit information.
event
test Merge pull request #38 from sreynen/patch-1 Sep 21, 2016
.gitignore all code + tests May 22, 2013
.jshintrc implemented minimal event Mar 26, 2014
.testem.json all code + tests May 22, 2013
.travis.yml all code + tests May 22, 2013
CONTRIBUTION.md Create CONTRIBUTION.md Jan 17, 2015
LICENCE
README.md
docs.mli Fix behavior of getElement* methods Jun 21, 2015
document.js
dom-comment.js Implement Document.prototype.createComment Jun 16, 2015
dom-element.js Update dom-element.js Aug 21, 2016
dom-fragment.js refactor & proper type definition Apr 6, 2014
dom-text.js Add nodeName property to text nodes Mar 15, 2016
event.js
index.js
package.json
serialize.js Change voidElements from RegEx to array Aug 19, 2016

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