Skip to content

Commit

Permalink
Remove changes upstreamed to SVG (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewarlow authored Mar 25, 2024
1 parent 925bb8c commit d1161b0
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1388,33 +1388,6 @@ partial interface ServiceWorkerContainer : EventTarget {
};
</pre>

## Integration with SVG ## {#integration-with-svg}

This document modifies the {{SVGAnimatedString}} interface to enforce Trusted Types:

<pre class="idl exclude">
[Exposed=Window]
partial interface mixin SVGAnimatedString {
attribute (DOMString or TrustedScriptURL) baseVal;
};
</pre>

On setting {{SVGAnimatedString/baseVal}}, the following steps are run:

1. <ins>If the reflected <a spec="dom">attribute</a>'s element is a {{SVGScriptElement}}, set |value| to the result of executing [$Get Trusted Type compliant string$] algorithm, with the following arguments:</ins>

* <ins>{{TrustedScriptURL}} as |expectedType|,</ins>
* <ins>reflected attribute's {{Document}}'s [=relevant global object=] as |global|,</ins>
* <ins>specified value as |input|,</ins>
* <ins>`SVGScriptElement href` as |sink|,</ins>
* <ins>'script' as |sinkGroup|.</ins>

<ins>Otherwise, set |value| to the specified value.</ins>

1. If the reflected attribute is not present, the {{SVGAnimatedString}} object is defined to additionally reflect a second, deprecated attribute, and that deprecated attribute is present, then set that deprecated attribute to <del>the specified value</del> <ins>|value|</ins>. Otherwise, set the reflected attribute to <ins>|value|</ins> <del>the specified value</del>.

Note: SVG does not have a complete script processing model <a href="https://github.com/w3c/svgwg/issues/196">yet</a>. Trusted Types assumes that the attribute and text body modification protections behave similarly to ones for HTML scripts outlined in [[#enforcement-in-scripts]].

## Integration with execCommand ## {#integration-with-exec-command}

This document modifies the following interfaces defined by the unofficial <a href="https://w3c.github.io/editing/docs/execCommand/">execCommand</a> document:
Expand Down

0 comments on commit d1161b0

Please sign in to comment.