Package Exports
- block-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 (block-elements) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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