DOM buildel for browser

npm install elements-lite
42 downloads in the last week
78 downloads in the last month
@version    0.1.17
@date       2014-03-24
@stability  1 - Experimental

Elements – Build Coverage

Syntax follows CSS Selectors where possible.


<script src=elements-lite.js></script> should place inside body.

Create elements one by one

El("div", "test").to(document.body)

El("a#link[href='/home']", "Home").to(document.body)
//<a id="link" href="/home">Home</a>

El("a", {id:"link", href:"/home"}).append("Home").to(document.body)
//<a id="link" href="/home">Home</a>

El(".custom", "test").to(document.body)
//<div class="custom">test</div>

Browser Support

browser support


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

npm loves you