diff --git a/master/types.html b/master/types.html index 177d5fea..05f28b54 100644 --- a/master/types.html +++ b/master/types.html @@ -2116,8 +2116,9 @@

Interface SVGAnimatedString

animatable attribute that takes a string value. It can optionally be defined to additionally reflect a second, deprecated attribute.

-
interface SVGAnimatedString {
-           attribute DOMString baseVal;
+
[Exposed=Window]
+interface SVGAnimatedString {
+           attribute (DOMString or TrustedScriptURL) baseVal;
   readonly attribute DOMString animVal;
 };
@@ -2153,13 +2154,22 @@

Interface SVGAnimatedString

the following steps are run:

    +
  1. If the reflected attribute’s element is an SVGScriptElement, let value be the result of + executing the Get Trusted Type compliant string + algorithm, with TrustedScriptURL, + reflected attribute’s Document's relevant global object, 'SVGScriptElement href', and 'script'.
  2. +
  3. Otherwise, let value be the specified value.
  4. 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.
  5. -
  6. Otherwise, set the reflected attribute to the specified value.
  7. + then set that deprecated attribute to value. +
  8. Otherwise, set the reflected attribute to value.
+

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.

+

For the href member on the SVGURIReference interface, this will result in the deprecated 'xlink:href' attribute being set if it is