MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / getTrustedContext

Function getTrustedContext

lib/test/angular/1.5.0/angular.js:9322–9334  ·  view source on GitHub ↗
(node, attrNormalizedName)

Source from the content-addressed store, hash-verified

9320
9321
9322 function getTrustedContext(node, attrNormalizedName) {
9323 if (attrNormalizedName == "srcdoc") {
9324 return $sce.HTML;
9325 }
9326 var tag = nodeName_(node);
9327 // maction[xlink:href] can source SVG. It's not limited to <maction>.
9328 if (attrNormalizedName == "xlinkHref" ||
9329 (tag == "form" && attrNormalizedName == "action") ||
9330 (tag != "img" && (attrNormalizedName == "src" ||
9331 attrNormalizedName == "ngSrc"))) {
9332 return $sce.RESOURCE_URL;
9333 }
9334 }
9335
9336
9337 function addAttrInterpolateDirective(node, directives, value, name, allOrNothing) {

Callers 1

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected