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

Function getChildNamespace

code/new-context-api/public/app.js:14143–14154  ·  view source on GitHub ↗
(parentNamespace, type)

Source from the content-addressed store, hash-verified

14141}
14142
14143function getChildNamespace(parentNamespace, type) {
14144 if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
14145 // No (or default) parent namespace: potential entry point.
14146 return getIntrinsicNamespace(type);
14147 }
14148 if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
14149 // We're leaving SVG.
14150 return HTML_NAMESPACE$1;
14151 }
14152 // By default, pass namespace below.
14153 return parentNamespace;
14154}
14155
14156/* globals MSApp */
14157

Callers 1

app.jsFile · 0.70

Calls 1

getIntrinsicNamespaceFunction · 0.70

Tested by

no test coverage detected