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

Function getChildNamespace

code/third-party/public/app.js:14015–14026  ·  view source on GitHub ↗
(parentNamespace, type)

Source from the content-addressed store, hash-verified

14013}
14014
14015function getChildNamespace(parentNamespace, type) {
14016 if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
14017 // No (or default) parent namespace: potential entry point.
14018 return getIntrinsicNamespace(type);
14019 }
14020 if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
14021 // We're leaving SVG.
14022 return HTML_NAMESPACE$1;
14023 }
14024 // By default, pass namespace below.
14025 return parentNamespace;
14026}
14027
14028/* globals MSApp */
14029

Callers 1

app.jsFile · 0.70

Calls 1

getIntrinsicNamespaceFunction · 0.70

Tested by

no test coverage detected