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

Function getIntrinsicNamespace

code/third-party/public/app.js:14004–14013  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

14002
14003// Assumes there is no parent namespace.
14004function getIntrinsicNamespace(type) {
14005 switch (type) {
14006 case 'svg':
14007 return SVG_NAMESPACE;
14008 case 'math':
14009 return MATH_NAMESPACE;
14010 default:
14011 return HTML_NAMESPACE$1;
14012 }
14013}
14014
14015function getChildNamespace(parentNamespace, type) {
14016 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