elements-lite

DOM buildel for browser

npm install elements-lite
2 downloads in the last week
54 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.

Usage

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

Create elements one by one

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

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

Licence

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

npm loves you