MCPcopy Index your code
hub / github.com/angular-ui/ui-router / detectNamespaceForChildElements

Function detectNamespaceForChildElements

test/angular/1.5/angular.js:8695–8703  ·  view source on GitHub ↗
(parentElement)

Source from the content-addressed store, hash-verified

8693 }
8694
8695 function detectNamespaceForChildElements(parentElement) {
8696 // TODO: Make this detect MathML as well...
8697 var node = parentElement && parentElement[0];
8698 if (!node) {
8699 return 'html';
8700 } else {
8701 return nodeName_(node) !== 'foreignobject' && toString.call(node).match(/SVG/) ? 'svg' : 'html';
8702 }
8703 }
8704
8705 /**
8706 * 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