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

Enum-like DOM properties throw TypeErrors on setting to unknown values #641

Merged
merged 1 commit into from
Feb 11, 2019

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 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