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