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

Function getIntrinsicNamespace

docs/external/js/react-dom.development.js:2588–2599  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

2586 }; // Assumes there is no parent namespace.
2587
2588 function getIntrinsicNamespace(type) {
2589 switch (type) {
2590 case 'svg':
2591 return SVG_NAMESPACE;
2592
2593 case 'math':
2594 return MATH_NAMESPACE;
2595
2596 default:
2597 return HTML_NAMESPACE;
2598 }
2599 }
2600 function getChildNamespace(parentNamespace, type) {
2601 if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {
2602 // No (or default) parent namespace: potential entry point.

Callers 3

getChildNamespaceFunction · 0.85
createElementFunction · 0.85
diffHydratedPropertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected