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

Function getChildNamespace

code/composition/public/app.js:14920–14931  ·  view source on GitHub ↗
(parentNamespace, type)

Source from the content-addressed store, hash-verified

14918}
14919
14920function getChildNamespace(parentNamespace, type) {
14921 if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
14922 // No (or default) parent namespace: potential entry point.
14923 return getIntrinsicNamespace(type);
14924 }
14925 if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
14926 // We're leaving SVG.
14927 return HTML_NAMESPACE$1;
14928 }
14929 // By default, pass namespace below.
14930 return parentNamespace;
14931}
14932
14933/* globals MSApp */
14934

Callers 1

app.jsFile · 0.70

Calls 1

getIntrinsicNamespaceFunction · 0.70

Tested by

no test coverage detected