(type)
| 2586 | }; // Assumes there is no parent namespace. |
| 2587 | |
| 2588 | function getIntrinsicNamespace(type) { |
| 2589 | switch (type) { |
| 2590 | case 'svg': |
| 2591 | return SVG_NAMESPACE; |
| 2592 | |
| 2593 | case 'math': |
| 2594 | return MATH_NAMESPACE; |
| 2595 | |
| 2596 | default: |
| 2597 | return HTML_NAMESPACE; |
| 2598 | } |
| 2599 | } |
| 2600 | function getChildNamespace(parentNamespace, type) { |
| 2601 | if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) { |
| 2602 | // No (or default) parent namespace: potential entry point. |
no outgoing calls
no test coverage detected