Re: [svgwg] Should setting an enum IDL to an invalid value throw an error?

The SVG Working Group just discussed `Should setting an enum IDL to an invalid value throw an error?`, and agreed to the following:

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

<details><summary>The full IRC log of that discussion</summary>
&lt;AmeliaBR> Topic: Should setting an enum IDL to an invalid value throw an error?<br>
&lt;AmeliaBR> github: https://github.com/w3c/svgwg/issues/547<br>
&lt;AmeliaBR> Amelia (describes issue)<br>
&lt;AmeliaBR> Chris: Blink, WebKit, Gecko throw errors: but what happens to the value?<br>
&lt;AmeliaBR> Amelia: It doesn't change.<br>
&lt;AmeliaBR> Chris: Well, that seems sensible.<br>
&lt;AmeliaBR> Amelia: I find it a bit confusing, as an author, to have an UNKNOWN constant that you can't use. But that's my only complaint.<br>
&lt;AmeliaBR> Chris: And we have three matching browsers.<br>
&lt;AmeliaBR> Amelia: And as Brian notes, it's consistent with behavior of WebIDL enum data type.<br>
&lt;AmeliaBR> Chris: So what needs to happen?<br>
&lt;AmeliaBR> Amelia: Need to find all relevant sections of the spec to update. I found three different bits of text.<br>
&lt;AmeliaBR> ... I can do that, eventually.<br>
&lt;AmeliaBR> RESOLUTION: Setting a enum-like DOM property to a value that doesn't represent a valid attribute value should throw a TypeError<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/547#issuecomment-424105119 using your GitHub account

Received on Monday, 24 September 2018 20:00:22 UTC