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

Function getTrustedContext

lib/test/angular/1.4.3/angular.js:8472–8484  ·  view source on GitHub ↗
(node, attrNormalizedName)

Source from the content-addressed store, hash-verified

8470
8471
8472 function getTrustedContext(node, attrNormalizedName) {
8473 if (attrNormalizedName == "srcdoc") {
8474 return $sce.HTML;
8475 }
8476 var tag = nodeName_(node);
8477 // maction[xlink:href] can source SVG. It's not limited to <maction>.
8478 if (attrNormalizedName == "xlinkHref" ||
8479 (tag == "form" && attrNormalizedName == "action") ||
8480 (tag != "img" && (attrNormalizedName == "src" ||
8481 attrNormalizedName == "ngSrc"))) {
8482 return $sce.RESOURCE_URL;
8483 }
8484 }
8485
8486
8487 function addAttrInterpolateDirective(node, directives, value, name, allOrNothing) {

Callers 1

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected