Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 603 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 603 Bytes

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