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

Function getIntrinsicNamespace

code/redux/public/app.js:15022–15031  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

15020
15021// Assumes there is no parent namespace.
15022function getIntrinsicNamespace(type) {
15023 switch (type) {
15024 case 'svg':
15025 return SVG_NAMESPACE;
15026 case 'math':
15027 return MATH_NAMESPACE;
15028 default:
15029 return HTML_NAMESPACE$1;
15030 }
15031}
15032
15033function getChildNamespace(parentNamespace, type) {
15034 if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {

Callers 3

getChildNamespaceFunction · 0.70
createElement$1Function · 0.70
diffHydratedProperties$1Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected