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

Function getIntrinsicNamespace

code/styling/public/app.js:14771–14780  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

14769
14770// Assumes there is no parent namespace.
14771function getIntrinsicNamespace(type) {
14772 switch (type) {
14773 case 'svg':
14774 return SVG_NAMESPACE;
14775 case 'math':
14776 return MATH_NAMESPACE;
14777 default:
14778 return HTML_NAMESPACE$1;
14779 }
14780}
14781
14782function getChildNamespace(parentNamespace, type) {
14783 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