1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| /* @flow */
|
| import { makeMap } from 'shared/util'
|
| export const isUnaryTag = makeMap(
| 'area,base,br,col,embed,frame,hr,img,input,isindex,keygen,' +
| 'link,meta,param,source,track,wbr'
| )
|
| // Elements that you can, intentionally, leave open
| // (and which close themselves)
| export const canBeLeftOpenTag = makeMap(
| 'colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source'
| )
|
| // HTML5 tags https://html.spec.whatwg.org/multipage/indices.html#elements-3
| // Phrasing Content https://html.spec.whatwg.org/multipage/dom.html#phrasing-content
| export const isNonPhrasingTag = makeMap(
| 'address,article,aside,base,blockquote,body,caption,col,colgroup,dd,' +
| 'details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,' +
| 'h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,' +
| 'optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,' +
| 'title,tr,track'
| )
|
|