MCPcopy Create free account
hub / github.com/microsoft/SandDance / getChildNamespace

Function getChildNamespace

docs/external/js/react-dom.development.js:2600–2613  ·  view source on GitHub ↗
(parentNamespace, type)

Source from the content-addressed store, hash-verified

2598 }
2599 }
2600 function getChildNamespace(parentNamespace, type) {
2601 if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {
2602 // No (or default) parent namespace: potential entry point.
2603 return getIntrinsicNamespace(type);
2604 }
2605
2606 if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
2607 // We're leaving SVG.
2608 return HTML_NAMESPACE;
2609 } // By default, pass namespace below.
2610
2611
2612 return parentNamespace;
2613 }
2614
2615 /* globals MSApp */
2616

Callers 2

getRootHostContextFunction · 0.85
getChildHostContextFunction · 0.85

Calls 1

getIntrinsicNamespaceFunction · 0.85

Tested by

no test coverage detected