(parentElement)
| 9222 | } |
| 9223 | |
| 9224 | function detectNamespaceForChildElements(parentElement) { |
| 9225 | // TODO: Make this detect MathML as well... |
| 9226 | var node = parentElement && parentElement[0]; |
| 9227 | if (!node) { |
| 9228 | return 'html'; |
| 9229 | } else { |
| 9230 | return nodeName_(node) !== 'foreignobject' && toString.call(node).match(/SVG/) ? 'svg' : 'html'; |
| 9231 | } |
| 9232 | } |
| 9233 | |
| 9234 | /** |
| 9235 | * Compile function matches each node in nodeList against the directives. Once all directives |