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

Function getIntrinsicNamespace

code/communication/public/app.js:14806–14815  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

14804
14805// Assumes there is no parent namespace.
14806function getIntrinsicNamespace(type) {
14807 switch (type) {
14808 case 'svg':
14809 return SVG_NAMESPACE;
14810 case 'math':
14811 return MATH_NAMESPACE;
14812 default:
14813 return HTML_NAMESPACE$1;
14814 }
14815}
14816
14817function getChildNamespace(parentNamespace, type) {
14818 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