(parentElement)
| 9183 | } |
| 9184 | |
| 9185 | function detectNamespaceForChildElements(parentElement) { |
| 9186 | // TODO: Make this detect MathML as well... |
| 9187 | var node = parentElement && parentElement[0]; |
| 9188 | if (!node) { |
| 9189 | return 'html'; |
| 9190 | } else { |
| 9191 | return nodeName_(node) !== 'foreignobject' && toString.call(node).match(/SVG/) ? 'svg' : 'html'; |
| 9192 | } |
| 9193 | } |
| 9194 | |
| 9195 | /** |
| 9196 | * Compile function matches each node in nodeList against the directives. Once all directives |