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

Function detectNamespaceForChildElements

lib/test/angular/1.5.0/angular.js:8111–8119  ·  view source on GitHub ↗
(parentElement)

Source from the content-addressed store, hash-verified

8109 }
8110
8111 function detectNamespaceForChildElements(parentElement) {
8112 // TODO: Make this detect MathML as well...
8113 var node = parentElement && parentElement[0];
8114 if (!node) {
8115 return 'html';
8116 } else {
8117 return nodeName_(node) !== 'foreignobject' && toString.call(node).match(/SVG/) ? 'svg' : 'html';
8118 }
8119 }
8120
8121 /**
8122 * 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