MCPcopy
hub / github.com/angular-ui/ui-router / detectNamespaceForChildElements

Function detectNamespaceForChildElements

test/angular/1.3/angular.js:7024–7032  ·  view source on GitHub ↗
(parentElement)

Source from the content-addressed store, hash-verified

7022 }
7023
7024 function detectNamespaceForChildElements(parentElement) {
7025 // TODO: Make this detect MathML as well...
7026 var node = parentElement && parentElement[0];
7027 if (!node) {
7028 return 'html';
7029 } else {
7030 return nodeName_(node) !== 'foreignobject' && node.toString().match(/SVG/) ? 'svg' : 'html';
7031 }
7032 }
7033
7034 /**
7035 * Compile function matches each node in nodeList against the directives. Once all directives

Callers 1

compileFunction · 0.70

Calls 2

matchMethod · 0.80
nodeName_Function · 0.70

Tested by

no test coverage detected