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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user