MCPcopy
hub / github.com/vuejs/core / resolveRootNamespace

Function resolveRootNamespace

packages/runtime-dom/src/index.ts:173–185  ·  view source on GitHub ↗
(
  container: Element | ShadowRoot,
)

Source from the content-addressed store, hash-verified

171}) as CreateAppFunction<Element>
172
173function resolveRootNamespace(
174 container: Element | ShadowRoot,
175): ElementNamespace {
176 if (container instanceof SVGElement) {
177 return 'svg'
178 }
179 if (
180 typeof MathMLElement === 'function' &&
181 container instanceof MathMLElement
182 ) {
183 return 'mathml'
184 }
185}
186
187function injectNativeTagCheck(app: App) {
188 // Inject `isNativeTag`

Callers 1

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected