(parentElement)
| 7419 | } |
| 7420 | |
| 7421 | function detectNamespaceForChildElements(parentElement) { |
| 7422 | // TODO: Make this detect MathML as well... |
| 7423 | var node = parentElement && parentElement[0]; |
| 7424 | if (!node) { |
| 7425 | return 'html'; |
| 7426 | } else { |
| 7427 | return nodeName_(node) !== 'foreignobject' && node.toString().match(/SVG/) ? 'svg' : 'html'; |
| 7428 | } |
| 7429 | } |
| 7430 | |
| 7431 | /** |
| 7432 | * Compile function matches each node in nodeList against the directives. Once all directives |