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

Function getChildNamespace

code/higher-order-components/public/app.js:14776–14787  ·  view source on GitHub ↗
(parentNamespace, type)

Source from the content-addressed store, hash-verified

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

Callers 1

app.jsFile · 0.70

Calls 1

getIntrinsicNamespaceFunction · 0.70

Tested by

no test coverage detected