(parentElement)
| 9112 | } |
| 9113 | |
| 9114 | function detectNamespaceForChildElements(parentElement) { |
| 9115 | // TODO: Make this detect MathML as well... |
| 9116 | var node = parentElement && parentElement[0]; |
| 9117 | if (!node) { |
| 9118 | return 'html'; |
| 9119 | } else { |
| 9120 | return nodeName_(node) !== 'foreignobject' && toString.call(node).match(/SVG/) ? 'svg' : 'html'; |
| 9121 | } |
| 9122 | } |
| 9123 | |
| 9124 | /** |
| 9125 | * Compile function matches each node in nodeList against the directives. Once all directives |