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

Function getTrustedContext

test/angular/1.3/angular.js:8105–8117  ·  view source on GitHub ↗
(node, attrNormalizedName)

Source from the content-addressed store, hash-verified

8103
8104
8105 function getTrustedContext(node, attrNormalizedName) {
8106 if (attrNormalizedName == "srcdoc") {
8107 return $sce.HTML;
8108 }
8109 var tag = nodeName_(node);
8110 // maction[xlink:href] can source SVG. It's not limited to <maction>.
8111 if (attrNormalizedName == "xlinkHref" ||
8112 (tag == "form" && attrNormalizedName == "action") ||
8113 (tag != "img" && (attrNormalizedName == "src" ||
8114 attrNormalizedName == "ngSrc"))) {
8115 return $sce.RESOURCE_URL;
8116 }
8117 }
8118
8119
8120 function addAttrInterpolateDirective(node, directives, value, name, allOrNothing) {

Callers 1

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected