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

Function getChildNamespace

code/styling/public/app.js:14782–14793  ·  view source on GitHub ↗
(parentNamespace, type)

Source from the content-addressed store, hash-verified

14780}
14781
14782function getChildNamespace(parentNamespace, type) {
14783 if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
14784 // No (or default) parent namespace: potential entry point.
14785 return getIntrinsicNamespace(type);
14786 }
14787 if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
14788 // We're leaving SVG.
14789 return HTML_NAMESPACE$1;
14790 }
14791 // By default, pass namespace below.
14792 return parentNamespace;
14793}
14794
14795/* globals MSApp */
14796

Callers 1

app.jsFile · 0.70

Calls 1

getIntrinsicNamespaceFunction · 0.70

Tested by

no test coverage detected