MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / getChildNamespace

Function getChildNamespace

code/communication/public/app.js:14817–14828  ·  view source on GitHub ↗
(parentNamespace, type)

Source from the content-addressed store, hash-verified

14815}
14816
14817function getChildNamespace(parentNamespace, type) {
14818 if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
14819 // No (or default) parent namespace: potential entry point.
14820 return getIntrinsicNamespace(type);
14821 }
14822 if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
14823 // We're leaving SVG.
14824 return HTML_NAMESPACE$1;
14825 }
14826 // By default, pass namespace below.
14827 return parentNamespace;
14828}
14829
14830/* globals MSApp */
14831

Callers 1

app.jsFile · 0.70

Calls 1

getIntrinsicNamespaceFunction · 0.70

Tested by

no test coverage detected