From 54c2e925ffae9ae09a94a8296570a7b66c2d4484 Mon Sep 17 00:00:00 2001 From: Luke Warlow Date: Wed, 20 Mar 2024 15:10:46 +0000 Subject: [PATCH] Remove changes upstreamed to SVG See https://github.com/w3c/svgwg/pull/934 --- spec/index.bs | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/spec/index.bs b/spec/index.bs index 059ce4c..bbdbae8 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -1388,33 +1388,6 @@ partial interface ServiceWorkerContainer : EventTarget { }; -## Integration with SVG ## {#integration-with-svg} - -This document modifies the {{SVGAnimatedString}} interface to enforce Trusted Types: - -
-[Exposed=Window]
-partial interface mixin SVGAnimatedString {
-           attribute (DOMString or TrustedScriptURL) baseVal;
-};
-
- -On setting {{SVGAnimatedString/baseVal}}, the following steps are run: - -1. If the reflected attribute's element is a {{SVGScriptElement}}, set |value| to the result of executing [$Get Trusted Type compliant string$] algorithm, with the following arguments: - - * {{TrustedScriptURL}} as |expectedType|, - * reflected attribute's {{Document}}'s [=relevant global object=] as |global|, - * specified value as |input|, - * `SVGScriptElement href` as |sink|, - * 'script' as |sinkGroup|. - - Otherwise, set |value| to the specified value. - -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 the specified value |value|. Otherwise, set the reflected attribute to |value| the specified value. - -Note: SVG does not have a complete script processing model yet. 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 execCommand document: