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

Function isTargetMathML

packages/runtime-core/src/components/Teleport.ts:42–43  ·  view source on GitHub ↗
(target: RendererElement)

Source from the content-addressed store, hash-verified

40 typeof SVGElement !== 'undefined' && target instanceof SVGElement
41
42const isTargetMathML = (target: RendererElement): boolean =>
43 typeof MathMLElement === 'function' && target instanceof MathMLElement
44
45const resolveTarget = <T = RendererElement>(
46 props: TeleportProps | null,

Callers 2

mountToTargetFunction · 0.85
processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected