Alex Bowers 9 лет назад
Родитель
Сommit
3fc8331e98
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/util/component.js

+ 1 - 1
src/util/component.js

@@ -2,7 +2,7 @@ import { warn } from './debug'
 import { resolveAsset } from './options'
 import { getBindAttr } from './dom'
 
-export const commonTagRE = /^(div|p|span|img|a|b|i|br|ul|ol|li|h1|h2|h3|h4|h5|h6|code|pre|table|th|td|tr|form|label|input|select|option|nav|article|section|header|footer)$/i
+export const commonTagRE = /^(div|p|span|img|a|b|i|br|ul|ol|li|h1|h2|h3|h4|h5|h6|code|pre|table|th|td|tr|form|label|input|select|option|nav|article|section|header|footer|main)$/i
 export const reservedTagRE = /^(slot|partial|component)$/i
 
 let isUnknownElement