dom-lite
A small DOM implementation
Last updated 6 years ago by lauriro .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dom-lite 
SYNC missed versions from official npm registry.

DOM lite – Build Coverage Size Buy Me A Tea

A small DOM implementation where most of DOM attributes and methods from document are implemented.

Examples

var document = require("dom-lite").document;

var el = document.createElement("h1");
el.id = 123;
el.className = "large";

var fragment = document.createDocumentFragment();
var text1 = document.createTextNode("hello");
var text2 = document.createTextNode(" world");

fragment.appendChild(text1);
fragment.appendChild(text2);
el.appendChild(fragment);

el.innerHTML;
// hello world
el.innerHTML = "<b>hello world</b>"
el.outerHTML;
// <h1 id="123" class="large"><b>hello world</b></h1>
el.querySelectorAll("b");
// [ "<b>hello world</b>" ]

External links

GitHub repo | npm package | DOM spec | Selectors Level 3 | Travis CI | Coveralls coverage
Coding Style Guidelines | Buy Me A Tea

Licence

Copyright (c) 2014-2020 Lauri Rooden <lauri@rooden.ee>
The MIT License

Current Tags

  • 20.2.0                                ...           latest (6 years ago)

40 Versions

  • 20.2.0                                ...           6 years ago
  • 0.5.1                                ...           10 years ago
  • 0.5.0                                ...           11 years ago
  • 0.4.0                                ...           11 years ago
  • 0.3.12                                ...           11 years ago
  • 0.3.11                                ...           11 years ago
  • 0.3.10                                ...           11 years ago
  • 0.3.9                                ...           11 years ago
  • 0.3.8                                ...           11 years ago
  • 0.3.7                                ...           11 years ago
  • 0.3.6                                ...           11 years ago
  • 0.3.5                                ...           11 years ago
  • 0.3.4                                ...           11 years ago
  • 0.3.3                                ...           11 years ago
  • 0.3.2                                ...           11 years ago
  • 0.3.1                                ...           11 years ago
  • 0.3.0                                ...           11 years ago
  • 0.2.1                                ...           11 years ago
  • 0.2.0                                ...           11 years ago
  • 0.1.7                                ...           11 years ago
  • 0.1.6                                ...           11 years ago
  • 0.1.5                                ...           12 years ago
  • 0.1.4                                ...           12 years ago
  • 0.1.3                                ...           12 years ago
  • 0.1.2                                ...           12 years ago
  • 0.1.1                                ...           12 years ago
  • 0.1.0                                ...           12 years ago
  • 0.0.16                                ...           12 years ago
  • 0.0.15                                ...           12 years ago
  • 0.0.14                                ...           12 years ago
  • 0.0.13                                ...           12 years ago
  • 0.0.12                                ...           12 years ago
  • 0.0.11                                ...           12 years ago
  • 0.0.8                                ...           12 years ago
  • 0.0.7                                ...           12 years ago
  • 0.0.6                                ...           12 years ago
  • 0.0.5                                ...           12 years ago
  • 0.0.4                                ...           12 years ago
  • 0.0.3                                ...           12 years ago
  • 0.0.1                                ...           12 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 9
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |