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

Function getIntrinsicNamespace

code/new-context-api/public/app.js:14132–14141  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

14130
14131// Assumes there is no parent namespace.
14132function getIntrinsicNamespace(type) {
14133 switch (type) {
14134 case 'svg':
14135 return SVG_NAMESPACE;
14136 case 'math':
14137 return MATH_NAMESPACE;
14138 default:
14139 return HTML_NAMESPACE$1;
14140 }
14141}
14142
14143function getChildNamespace(parentNamespace, type) {
14144 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