element

Create's DOMElement from a string

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
element
610.1.410 years ago11 years agoMinified + gzip package size for element in KB

Readme

element
!dependency status34
!browser support56
Turn HTML into DOM elements x-browser.
var element = require("element")

element("<p>Hello</p><p>World</p>")[0]
// => Hello

element("<p>Hello</p><p>World</p>")[1]
// => World

Installation

npm install element

Contributors

- TJ Holowaychuk - Shyltman - Raynos

MIT Licensed

1: https://secure.travis-ci.org/Colingo/element.png 2: http://travis-ci.org/Colingo/element 3: https://david-dm.org/Colingo/element/status.png 4: https://david-dm.org/Colingo/element 5: https://ci.testling.com/Colingo/element.png 6: https://ci.testling.com/Colingo/element