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

Function getChildNamespace

code/controlled-uncontrolled/public/app.js:14106–14117  ·  view source on GitHub ↗
(parentNamespace, type)

Source from the content-addressed store, hash-verified

14104}
14105
14106function getChildNamespace(parentNamespace, type) {
14107 if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
14108 // No (or default) parent namespace: potential entry point.
14109 return getIntrinsicNamespace(type);
14110 }
14111 if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
14112 // We're leaving SVG.
14113 return HTML_NAMESPACE$1;
14114 }
14115 // By default, pass namespace below.
14116 return parentNamespace;
14117}
14118
14119/* globals MSApp */
14120

Callers 1

app.jsFile · 0.70

Calls 1

getIntrinsicNamespaceFunction · 0.70

Tested by

no test coverage detected