MyRepo-Ums/node_modules/void-elements
2024-01-19 11:09:11 +01:00
..
test first commit 2024-01-19 11:09:11 +01:00
.gitattributes first commit 2024-01-19 11:09:11 +01:00
.npmignore first commit 2024-01-19 11:09:11 +01:00
.travis.yml first commit 2024-01-19 11:09:11 +01:00
index.js first commit 2024-01-19 11:09:11 +01:00
LICENSE first commit 2024-01-19 11:09:11 +01:00
package.json first commit 2024-01-19 11:09:11 +01:00
pre-publish.js first commit 2024-01-19 11:09:11 +01:00
README.md first commit 2024-01-19 11:09:11 +01:00

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