medium-to-markdown/node_modules/void-elements
David Tesler 9bd1ed72ce first commit 2017-04-28 17:26:30 -07:00
..
test first commit 2017-04-28 17:26:30 -07:00
.gitattributes first commit 2017-04-28 17:26:30 -07:00
.npmignore first commit 2017-04-28 17:26:30 -07:00
.travis.yml first commit 2017-04-28 17:26:30 -07:00
LICENSE first commit 2017-04-28 17:26:30 -07:00
README.md first commit 2017-04-28 17:26:30 -07:00
index.js first commit 2017-04-28 17:26:30 -07:00
package.json first commit 2017-04-28 17:26:30 -07:00
pre-publish.js first commit 2017-04-28 17:26:30 -07:00

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