New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

html-void-elements

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-void-elements

List of known void HTML elements

1.0.3
Source
npm
Version published
Weekly downloads
4.5M
1.27%
Maintainers
1
Weekly downloads
 
Created
Source

html-void-elements Build Status

List of known void HTML elements. Includes ancient (for example, nextid and basefont) and modern (for example, img and meta) tag-names from both W3C and WHATWG.

Note: there’s one special case: menuitem. W3C specifies it to be void, but WHATWG doesn’t. I suggest using the void form.

Installation

npm:

npm install html-void-elements

Usage

var htmlVoidElements = require('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

htmlVoidElements

Array.<string> — List of lower-case tag-names.

License

MIT © Titus Wormer

Keywords

html

FAQs

Package last updated on 14 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts