(node, attrNormalizedName)
| 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) { |
no test coverage detected