refactor(runtime-dom): avoid form attribtue tag check

the tag check while technically stricter, is not really necessary
and introduces too much weight
This commit is contained in:
Evan You
2021-02-24 15:06:51 -05:00
parent 414c265dd9
commit 180310cbe9
2 changed files with 9 additions and 20 deletions

View File

@@ -30,11 +30,6 @@ const SVG_TAGS =
const VOID_TAGS =
'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr'
const FORM_TAGS =
'button,datalist,fieldset,input,keygen,label,legend,meter,optgroup,option,' +
'output,progress,select,textarea'
export const isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS)
export const isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS)
export const isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS)
export const isFormTag = /*#__PURE__*/ makeMap(FORM_TAGS, true)