Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
980 bytes
|
Line | |
---|
1 | void-elements
|
---|
2 | ==============
|
---|
3 |
|
---|
4 | ### Array of "void elements" defined by the HTML specification
|
---|
5 |
|
---|
6 | Exports an Array of "void element" node names as defined by the HTML spec.
|
---|
7 |
|
---|
8 | The list is programatically generated from the [latest W3C HTML draft](http://www.w3.org/html/wg/drafts/html/master/syntax.html#void-elements).
|
---|
9 |
|
---|
10 | [![Build Status](https://img.shields.io/travis/jadejs/void-elements/master.svg?style=flat)](https://travis-ci.org/jadejs/void-elements)
|
---|
11 | [![Developing Dependency Status](https://img.shields.io/david/dev/jadejs/void-elements.svg?style=flat)](https://david-dm.org/jadejs/void-elements#info=devDependencies)
|
---|
12 | [![NPM version](https://img.shields.io/npm/v/void-elements.svg?style=flat)](https://www.npmjs.org/package/void-elements)
|
---|
13 |
|
---|
14 | Usage
|
---|
15 | -----
|
---|
16 |
|
---|
17 | ```js
|
---|
18 | var voidElements = require('void-elements');
|
---|
19 |
|
---|
20 | assert(voidElements.indexOf('span') === -1, '<span> is not a void element');
|
---|
21 | assert(voidElements.indexOf('img') !== -1, '<img> is a void element');
|
---|
22 | ```
|
---|
23 |
|
---|
24 | License
|
---|
25 | -------
|
---|
26 |
|
---|
27 | MIT
|
---|
Note:
See
TracBrowser
for help on using the repository browser.