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

Function detectNamespaceForChildElements

test/angular/1.7/angular.js:9709–9717  ·  view source on GitHub ↗
(parentElement)

Source from the content-addressed store, hash-verified

9707 }
9708
9709 function detectNamespaceForChildElements(parentElement) {
9710 // TODO: Make this detect MathML as well...
9711 var node = parentElement && parentElement[0];
9712 if (!node) {
9713 return 'html';
9714 } else {
9715 return nodeName_(node) !== 'foreignobject' && toString.call(node).match(/SVG/) ? 'svg' : 'html';
9716 }
9717 }
9718
9719 /**
9720 * 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