MCPcopy Index your code
hub / github.com/plotly/dash / getChildNamespace

Function getChildNamespace

dash/deps/react-dom@18.2.0.js:2373–2386  ·  view source on GitHub ↗
(parentNamespace, type)

Source from the content-addressed store, hash-verified

2371 }
2372 }
2373 function getChildNamespace(parentNamespace, type) {
2374 if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {
2375 // No (or default) parent namespace: potential entry point.
2376 return getIntrinsicNamespace(type);
2377 }
2378
2379 if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
2380 // We're leaving SVG.
2381 return HTML_NAMESPACE;
2382 } // By default, pass namespace below.
2383
2384
2385 return parentNamespace;
2386 }
2387
2388 /* globals MSApp */
2389

Callers 2

getRootHostContextFunction · 0.70
getChildHostContextFunction · 0.70

Calls 1

getIntrinsicNamespaceFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…