(type)
| 6158 | }; // Assumes there is no parent namespace. |
| 6159 | |
| 6160 | function getIntrinsicNamespace(type) { |
| 6161 | switch (type) { |
| 6162 | case 'svg': |
| 6163 | return SVG_NAMESPACE; |
| 6164 | |
| 6165 | case 'math': |
| 6166 | return MATH_NAMESPACE; |
| 6167 | |
| 6168 | default: |
| 6169 | return HTML_NAMESPACE; |
| 6170 | } |
| 6171 | } |
| 6172 | function getChildNamespace(parentNamespace, type) { |
| 6173 | if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) { |
| 6174 | // No (or default) parent namespace: potential entry point. |
no outgoing calls
no test coverage detected