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

Function getIntrinsicNamespace

code/composition/public/app.js:14909–14918  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

14907
14908// Assumes there is no parent namespace.
14909function getIntrinsicNamespace(type) {
14910 switch (type) {
14911 case 'svg':
14912 return SVG_NAMESPACE;
14913 case 'math':
14914 return MATH_NAMESPACE;
14915 default:
14916 return HTML_NAMESPACE$1;
14917 }
14918}
14919
14920function getChildNamespace(parentNamespace, type) {
14921 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