(parentElement)
| 8693 | } |
| 8694 | |
| 8695 | function detectNamespaceForChildElements(parentElement) { |
| 8696 | // TODO: Make this detect MathML as well... |
| 8697 | var node = parentElement && parentElement[0]; |
| 8698 | if (!node) { |
| 8699 | return 'html'; |
| 8700 | } else { |
| 8701 | return nodeName_(node) !== 'foreignobject' && toString.call(node).match(/SVG/) ? 'svg' : 'html'; |
| 8702 | } |
| 8703 | } |
| 8704 | |
| 8705 | /** |
| 8706 | * Compile function matches each node in nodeList against the directives. Once all directives |