Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

block-elements

webmodules107.6kMIT1.2.0

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

browser, data, block, level, elements, html, html4, html5, array

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

changelog

1.2.0 / 2017-05-02

  • Document hash and set in README
  • regenerate index.js

1.1.0 / 2015-03-20

  • add hash and set versions to optionally use, which support UPPERCASE like nodeName uses by default

1.0.1 / 2015-03-19

  • add README.md
  • add LICENSE file
  • rebuild, add "main" and "nav"
  • package: add "prepublish" instead (#1, @hemanth)

1.0.0 / 2014-08-27

  • initial commit