tree: 0f0ebeb677448f27a89feebcf8389bed97fc3af3 [path history] [tgz]
  1. test/
  2. .npmignore
  3. .travis.yml
  4. index.js
  5. LICENSE
  6. package.json
  7. pre-publish.js
  8. README.md
third_party/devtools/node_modules/void-elements/README.md

void-elements

Array of “void elements” defined by the HTML specification

Exports an Array of “void element” node names as defined by the HTML spec.

The list is programatically generated from the latest W3C HTML draft.

Build Status Developing Dependency Status NPM version

Usage

var voidElements = require('void-elements');

assert(voidElements.indexOf('span') === -1, '<span> is not a void element');
assert(voidElements.indexOf('img') !== -1, '<img> is a void element');

License

MIT