W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2015

[Bug 29151] New: Clarify if assigning wrong enumeration value to an attribute should throw

From: <bugzilla@jessica.w3.org>
Date: Fri, 25 Sep 2015 19:48:13 +0000
To: public-script-coord@w3.org
Message-ID: <bug-29151-3890@http.www.w3.org/Bugs/Public/>

            Bug ID: 29151
           Summary: Clarify if assigning wrong enumeration value to an
                    attribute should throw
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: dchris@gmail.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org
  Target Milestone: ---

I may have missed something but I initially read the ECMAScript bindings
section for enumerations [1] and it said to throw a TypeError if the input
value is not a valid value for this enumeration.

However, I then noticed a Note in the non-ECMAScript enumeration section [2]
that says we should only throw when converting operation arguments but NOT when
assigning an attribute. If this is really the intended behavior for ECMAScript
bindings, I think it would be worse specifying it in [1] instead of simply in a

[1] https://heycam.github.io/webidl/#es-enumeration
[2] https://heycam.github.io/webidl/#idl-enums

You are receiving this mail because:
You are on the CC list for the bug.
Received on Friday, 25 September 2015 19:48:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:24 UTC