MCPcopy Create free account
hub / github.com/ygs-code/vue / getTagNamespace

Function getTagNamespace

vue.js:7637–7649  ·  view source on GitHub ↗
(tag)

Source from the content-addressed store, hash-verified

7635
7636 //判断 tag 是否是svg或者math 标签
7637 function getTagNamespace(tag) {
7638 //如果是svg
7639 if (isSVG(tag)) {
7640 return 'svg'
7641 }
7642 // basic support for MathML
7643 // note it doesn't support other MathML elements being component roots
7644 // MathML的基本支持
7645 //注意,它不支持作为组件根的其他MathML元素
7646 if (tag === 'math') {
7647 return 'math'
7648 }
7649 }
7650
7651 var unknownElementCache = Object.create(null);
7652

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected