(parentElement)
| 7022 | } |
| 7023 | |
| 7024 | function detectNamespaceForChildElements(parentElement) { |
| 7025 | // TODO: Make this detect MathML as well... |
| 7026 | var node = parentElement && parentElement[0]; |
| 7027 | if (!node) { |
| 7028 | return 'html'; |
| 7029 | } else { |
| 7030 | return nodeName_(node) !== 'foreignobject' && node.toString().match(/SVG/) ? 'svg' : 'html'; |
| 7031 | } |
| 7032 | } |
| 7033 | |
| 7034 | /** |
| 7035 | * Compile function matches each node in nodeList against the directives. Once all directives |