![]() |
2 gadi atpakaļ | |
---|---|---|
.. | ||
test | 2 gadi atpakaļ | |
.gitattributes | 2 gadi atpakaļ | |
.npmignore | 2 gadi atpakaļ | |
.travis.yml | 2 gadi atpakaļ | |
LICENSE | 2 gadi atpakaļ | |
README.md | 2 gadi atpakaļ | |
index.js | 2 gadi atpakaļ | |
package.json | 2 gadi atpakaļ | |
pre-publish.js | 2 gadi atpakaļ |
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.
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');
MIT