1 |
|
2 |
|
3 | import { makeMap } from 'shared/util'
|
4 |
|
5 | export const isUnaryTag = makeMap(
|
6 | 'area,base,br,col,embed,frame,hr,img,input,isindex,keygen,' +
|
7 | 'link,meta,param,source,track,wbr'
|
8 | )
|
9 |
|
10 |
|
11 |
|
12 | export const canBeLeftOpenTag = makeMap(
|
13 | 'colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source'
|
14 | )
|
15 |
|
16 |
|
17 |
|
18 | export const isNonPhrasingTag = makeMap(
|
19 | 'address,article,aside,base,blockquote,body,caption,col,colgroup,dd,' +
|
20 | 'details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,' +
|
21 | 'h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,' +
|
22 | 'optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,' +
|
23 | 'title,tr,track'
|
24 | )
|