MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / getTrustedContext

Function getTrustedContext

code/songhop/www/lib/angular/angular.js:8021–8033  ·  view source on GitHub ↗
(node, attrNormalizedName)

Source from the content-addressed store, hash-verified

8019
8020
8021 function getTrustedContext(node, attrNormalizedName) {
8022 if (attrNormalizedName == "srcdoc") {
8023 return $sce.HTML;
8024 }
8025 var tag = nodeName_(node);
8026 // maction[xlink:href] can source SVG. It's not limited to <maction>.
8027 if (attrNormalizedName == "xlinkHref" ||
8028 (tag == "form" && attrNormalizedName == "action") ||
8029 (tag != "img" && (attrNormalizedName == "src" ||
8030 attrNormalizedName == "ngSrc"))) {
8031 return $sce.RESOURCE_URL;
8032 }
8033 }
8034
8035
8036 function addAttrInterpolateDirective(node, directives, value, name, allOrNothing) {

Callers 1

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected