Skip to content

Conversation

@AmeliaBR
Copy link
Contributor

As resolved in #547 (comment)

RESOLUTION: Setting a enum-like DOM property to a value
that doesn't represent a valid attribute value
should throw a TypeError

This affects the setter algorithm for
SVGAnimatedEnumeration
and for SVGPreserveAspectRatio.

Clarifying changes made to:

  • the note regarding reserializing an SVGAnimatedEnumeration,
  • the general statement about
    silently ignoring invalid values.

Closes #547.

As resolved in w3c#547 (comment)

> RESOLUTION: Setting a enum-like DOM property to a value
> that doesn't represent a valid attribute value
> should throw a TypeError

This affects the setter algorithm for
SVGAnimatedEnumeration
and for SVGPreserveAspectRatio.

Clarifying changes made to:
-  the note regarding reserializing an SVGAnimatedEnumeration,
- the general statement about
silently ignoring invalid values.

Closes w3c#547.
@AmeliaBR AmeliaBR requested review from birtles and svgeesus January 31, 2019 05:20
@AmeliaBR AmeliaBR merged commit f756827 into w3c:master Feb 11, 2019
@AmeliaBR AmeliaBR deleted the fix-547-enum-invalid branch February 11, 2019 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should setting an enum IDL to an invalid value throw an error?

2 participants