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

Function getIntrinsicNamespace

code/dependency-injection/public/app.js:14864–14873  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

14862
14863// Assumes there is no parent namespace.
14864function getIntrinsicNamespace(type) {
14865 switch (type) {
14866 case 'svg':
14867 return SVG_NAMESPACE;
14868 case 'math':
14869 return MATH_NAMESPACE;
14870 default:
14871 return HTML_NAMESPACE$1;
14872 }
14873}
14874
14875function getChildNamespace(parentNamespace, type) {
14876 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