(parentElement)
| 9772 | } |
| 9773 | |
| 9774 | function detectNamespaceForChildElements(parentElement) { |
| 9775 | // TODO: Make this detect MathML as well... |
| 9776 | var node = parentElement && parentElement[0]; |
| 9777 | if (!node) { |
| 9778 | return 'html'; |
| 9779 | } else { |
| 9780 | return nodeName_(node) !== 'foreignobject' && toString.call(node).match(/SVG/) ? 'svg' : 'html'; |
| 9781 | } |
| 9782 | } |
| 9783 | |
| 9784 | /** |
| 9785 | * Compile function matches each node in nodeList against the directives. Once all directives |