(parentElement)
| 7858 | } |
| 7859 | |
| 7860 | function detectNamespaceForChildElements(parentElement) { |
| 7861 | // TODO: Make this detect MathML as well... |
| 7862 | var node = parentElement && parentElement[0]; |
| 7863 | if (!node) { |
| 7864 | return 'html'; |
| 7865 | } else { |
| 7866 | return nodeName_(node) !== 'foreignobject' && node.toString().match(/SVG/) ? 'svg' : 'html'; |
| 7867 | } |
| 7868 | } |
| 7869 | |
| 7870 | /** |
| 7871 | * Compile function matches each node in nodeList against the directives. Once all directives |