block-elements

Array of "block level elements" defined by the HTML specification

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
block-elements
1921.2.06 years ago8 years agoMinified + gzip package size for block-elements in KB

Readme

block-elements

Array of "block level elements" defined by the HTML specification

Exports an Array of "block level element" node names as defined by the HTML spec.
The list is programatically generated from MDN.

Usage

As an Array:
var blocks = require('block-elements')
blocks.indexOf('div') > -1 // true

As an Object:
var hash = require('block-elements/hash')
hash['div'] && hash['DIV'] // true

As a Set:
var set = require('block-elements/set')
set.has('div') && set.has('DIV') // true