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

Function detectNamespaceForChildElements

test/angular/1.4/angular.js:7860–7868  ·  view source on GitHub ↗
(parentElement)

Source from the content-addressed store, hash-verified

7858 }
7859
7860 function detectNamespaceForChildElements(parentElement) {
7861 // TODO: Make this detect MathML as well...
7862 var node = parentElement && parentElement[0];
7863 if (!node) {
7864 return 'html';
7865 } else {
7866 return nodeName_(node) !== 'foreignobject' && node.toString().match(/SVG/) ? 'svg' : 'html';
7867 }
7868 }
7869
7870 /**
7871 * 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