Skip to content

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

License

Notifications You must be signed in to change notification settings

webmodules/block-elements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published