Package Exports
- html-void-elements
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (html-void-elements) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
html-void-elements
List of known void HTML elements.
Includes ancient (such as nextid and basefont) and modern (such as img and
meta) tag names from the HTML living standard.
Install
This package is ESM only: Node 12+ is needed to use it and it must be imported
instead of required.
npm:
npm install html-void-elementsUse
import {htmlVoidElements} from 'html-void-elements'
console.log(htmlVoidElements)Yields:
[
'area',
'base',
'basefont',
'bgsound',
'br',
'col',
'command',
'embed',
'frame',
'hr',
'image',
'img',
'input',
'isindex',
'keygen',
'link',
'menuitem',
'meta',
'nextid',
'param',
'source',
'track',
'wbr'
]API
This package exports the following identifiers: htmlVoidElements.
There is no default export.
htmlVoidElements
string[] — List of lowercase tag names.