(node, attrNormalizedName)
| 9320 | |
| 9321 | |
| 9322 | function getTrustedContext(node, attrNormalizedName) { |
| 9323 | if (attrNormalizedName == "srcdoc") { |
| 9324 | return $sce.HTML; |
| 9325 | } |
| 9326 | var tag = nodeName_(node); |
| 9327 | // maction[xlink:href] can source SVG. It's not limited to <maction>. |
| 9328 | if (attrNormalizedName == "xlinkHref" || |
| 9329 | (tag == "form" && attrNormalizedName == "action") || |
| 9330 | (tag != "img" && (attrNormalizedName == "src" || |
| 9331 | attrNormalizedName == "ngSrc"))) { |
| 9332 | return $sce.RESOURCE_URL; |
| 9333 | } |
| 9334 | } |
| 9335 | |
| 9336 | |
| 9337 | function addAttrInterpolateDirective(node, directives, value, name, allOrNothing) { |
no test coverage detected