jingsam 9 лет назад
Родитель
Сommit
13a14d5a96
1 измененных файлов с 3 добавлено и 6 удалено
  1. 3 6
      src/platforms/web/compiler/util.js

+ 3 - 6
src/platforms/web/compiler/util.js

@@ -4,15 +4,13 @@ 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',
-  true
+  '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',
-  true
+  'colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source'
 )
 
 // HTML5 tags https://html.spec.whatwg.org/multipage/indices.html#elements-3
@@ -22,6 +20,5 @@ export const isNonPhrasingTag = makeMap(
   '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',
-  true
+  'title,tr,track'
 )