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

Function resolveChildrenNamespace

packages/runtime-core/src/renderer.ts:2474–2486  ·  view source on GitHub ↗
(
  { type, props }: VNode,
  currentNamespace: ElementNamespace,
)

Source from the content-addressed store, hash-verified

2472}
2473
2474function resolveChildrenNamespace(
2475 { type, props }: VNode,
2476 currentNamespace: ElementNamespace,
2477): ElementNamespace {
2478 return (currentNamespace === 'svg' && type === 'foreignObject') ||
2479 (currentNamespace === 'mathml' &&
2480 type === 'annotation-xml' &&
2481 props &&
2482 props.encoding &&
2483 props.encoding.includes('html'))
2484 ? undefined
2485 : currentNamespace
2486}
2487
2488function toggleRecurse(
2489 { effect, job }: ComponentInternalInstance,

Callers 2

mountElementFunction · 0.85
patchElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected