(parentElement)
| 8109 | } |
| 8110 | |
| 8111 | function detectNamespaceForChildElements(parentElement) { |
| 8112 | // TODO: Make this detect MathML as well... |
| 8113 | var node = parentElement && parentElement[0]; |
| 8114 | if (!node) { |
| 8115 | return 'html'; |
| 8116 | } else { |
| 8117 | return nodeName_(node) !== 'foreignobject' && toString.call(node).match(/SVG/) ? 'svg' : 'html'; |
| 8118 | } |
| 8119 | } |
| 8120 | |
| 8121 | /** |
| 8122 | * Compile function matches each node in nodeList against the directives. Once all directives |