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

Function isTargetSVG

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

Source from the content-addressed store, hash-verified

37 props && (props.defer || props.defer === '')
38
39const isTargetSVG = (target: RendererElement): boolean =>
40 typeof SVGElement !== 'undefined' && target instanceof SVGElement
41
42const isTargetMathML = (target: RendererElement): boolean =>
43 typeof MathMLElement === 'function' && target instanceof MathMLElement

Callers 2

mountToTargetFunction · 0.85
processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected