NET-Web-API-w-Angular/my-app/node_modules/void-elements
2024-02-08 19:38:41 -05:00
..
test Updated the files. 2024-02-08 19:38:41 -05:00
.gitattributes Updated the files. 2024-02-08 19:38:41 -05:00
.npmignore Updated the files. 2024-02-08 19:38:41 -05:00
.travis.yml Updated the files. 2024-02-08 19:38:41 -05:00
index.js Updated the files. 2024-02-08 19:38:41 -05:00
LICENSE Updated the files. 2024-02-08 19:38:41 -05:00
package.json Updated the files. 2024-02-08 19:38:41 -05:00
pre-publish.js Updated the files. 2024-02-08 19:38:41 -05:00
README.md Updated the files. 2024-02-08 19:38:41 -05: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