0.1.7 • Published 8 years ago
html-element-groups v0.1.7
html-element-groups
Lists of HTML elements. Grouped based on logic from MDN.
const elements = require('html-element-groups')
console.log(elements.sectioning)
// => ['address', 'article', 'aside', ...
console.log(elements.deprecated)
// => ['acronym', 'applet', 'basefont', ...
console.log(elements.include(['text', 'inline', 'tabular']))
// => ['blockquote', 'dd', 'div', ...Properties
source— https://developer.mozilla.org/en/docs/Web/HTML/Elementtimestamp— Time of current buildsectioningtextinlinedemarcatingtabularforminteractivedeprecatednames— Flattened array of elements, omitting deprecatednamesIncludingDeprecated— Flattened array of elements, including deprecatedinclude— Include elements by argumentsexclude— All elements, except by arguments