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