(parentNamespace, type)
| 2598 | } |
| 2599 | } |
| 2600 | function getChildNamespace(parentNamespace, type) { |
| 2601 | if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) { |
| 2602 | // No (or default) parent namespace: potential entry point. |
| 2603 | return getIntrinsicNamespace(type); |
| 2604 | } |
| 2605 | |
| 2606 | if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') { |
| 2607 | // We're leaving SVG. |
| 2608 | return HTML_NAMESPACE; |
| 2609 | } // By default, pass namespace below. |
| 2610 | |
| 2611 | |
| 2612 | return parentNamespace; |
| 2613 | } |
| 2614 | |
| 2615 | /* globals MSApp */ |
| 2616 |
no test coverage detected