MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / detectNamespaceForChildElements

Function detectNamespaceForChildElements

lib/test/angular/1.4.3/angular.js:7421–7429  ·  view source on GitHub ↗
(parentElement)

Source from the content-addressed store, hash-verified

7419 }
7420
7421 function detectNamespaceForChildElements(parentElement) {
7422 // TODO: Make this detect MathML as well...
7423 var node = parentElement && parentElement[0];
7424 if (!node) {
7425 return 'html';
7426 } else {
7427 return nodeName_(node) !== 'foreignobject' && node.toString().match(/SVG/) ? 'svg' : 'html';
7428 }
7429 }
7430
7431 /**
7432 * Compile function matches each node in nodeList against the directives. Once all directives

Callers 1

compileFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected