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

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29151

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

[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