source: trip-planner-front/node_modules/void-elements/README.md@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 980 bytes
Line 
1void-elements
2==============
3
4### Array of "void elements" defined by the HTML specification
5
6Exports an Array of "void element" node names as defined by the HTML spec.
7
8The 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
14Usage
15-----
16
17```js
18var voidElements = require('void-elements');
19
20assert(voidElements.indexOf('span') === -1, '<span> is not a void element');
21assert(voidElements.indexOf('img') !== -1, '<img> is a void element');
22```
23
24License
25-------
26
27MIT
Note: See TracBrowser for help on using the repository browser.