Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove changes upstreamed to SVG #487

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading