MCPcopy Index your code
hub / github.com/ygs-code/vue / isForbiddenTag

Function isForbiddenTag

vue.js:14017–14028  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

14015
14016 //如果是style或者是是script 标签并且type属性不存在 或者存在并且是javascript 属性 的时候返回真
14017 function isForbiddenTag(el) {
14018 return (
14019 el.tag === 'style' || //如果标签是 style
14020 (
14021 el.tag === 'script' && //如果是script 标签
14022 (
14023 !el.attrsMap.type || //如果type属性不存在
14024 el.attrsMap.type === 'text/javascript' //或者如果type属性是javascript
14025 )
14026 )
14027 )
14028 }
14029
14030 var ieNSBug = /^xmlns:NS\d+/; //匹配 字符串 xmlns:NS+数字
14031 var ieNSPrefix = /^NS\d+:/; //匹配 字符串 NS+数字

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected