Function
resolveRootNamespace
(
container: Element | ShadowRoot,
)
Source from the content-addressed store, hash-verified
| 171 | }) as CreateAppFunction<Element> |
| 172 | |
| 173 | function 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 | |
| 187 | function injectNativeTagCheck(app: App) { |
| 188 | // Inject `isNativeTag` |
Tested by
no test coverage detected