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

Function detectNamespaceForChildElements

test/angular/1.6/angular.js:9185–9193  ·  view source on GitHub ↗
(parentElement)

Source from the content-addressed store, hash-verified

9183 }
9184
9185 function detectNamespaceForChildElements(parentElement) {
9186 // TODO: Make this detect MathML as well...
9187 var node = parentElement && parentElement[0];
9188 if (!node) {
9189 return 'html';
9190 } else {
9191 return nodeName_(node) !== 'foreignobject' && toString.call(node).match(/SVG/) ? 'svg' : 'html';
9192 }
9193 }
9194
9195 /**
9196 * 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