MCPcopy Create free account
hub / github.com/reactjs/react-rails / getChildNamespace

Function getChildNamespace

lib/assets/react-source/development/react.js:6172–6185  ·  view source on GitHub ↗
(parentNamespace, type)

Source from the content-addressed store, hash-verified

6170 }
6171 }
6172 function getChildNamespace(parentNamespace, type) {
6173 if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {
6174 // No (or default) parent namespace: potential entry point.
6175 return getIntrinsicNamespace(type);
6176 }
6177
6178 if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
6179 // We're leaving SVG.
6180 return HTML_NAMESPACE;
6181 } // By default, pass namespace below.
6182
6183
6184 return parentNamespace;
6185 }
6186
6187 /* globals MSApp */
6188

Callers 2

getRootHostContextFunction · 0.70
getChildHostContextFunction · 0.70

Calls 1

getIntrinsicNamespaceFunction · 0.70

Tested by

no test coverage detected