(parentElement)
| 9707 | } |
| 9708 | |
| 9709 | function detectNamespaceForChildElements(parentElement) { |
| 9710 | // TODO: Make this detect MathML as well... |
| 9711 | var node = parentElement && parentElement[0]; |
| 9712 | if (!node) { |
| 9713 | return 'html'; |
| 9714 | } else { |
| 9715 | return nodeName_(node) !== 'foreignobject' && toString.call(node).match(/SVG/) ? 'svg' : 'html'; |
| 9716 | } |
| 9717 | } |
| 9718 | |
| 9719 | /** |
| 9720 | * Compile function matches each node in nodeList against the directives. Once all directives |