(parentNamespace, type)
| 6170 | } |
| 6171 | } |
| 6172 | function getChildNamespace(parentNamespace, type) { |
| 6173 | if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) { |
| 6174 | // No (or default) parent namespace: potential entry point. |
| 6175 | return getIntrinsicNamespace(type); |
| 6176 | } |
| 6177 | |
| 6178 | if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') { |
| 6179 | // We're leaving SVG. |
| 6180 | return HTML_NAMESPACE; |
| 6181 | } // By default, pass namespace below. |
| 6182 | |
| 6183 | |
| 6184 | return parentNamespace; |
| 6185 | } |
| 6186 | |
| 6187 | /* globals MSApp */ |
| 6188 |
no test coverage detected