This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 18749 - Why removing exception throwing from binaryType
Summary: Why removing exception throwing from binaryType
Status: RESOLVED WONTFIX
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebSocket API (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-31 05:34 UTC by Takeshi Yoshino
Modified: 2012-09-28 03:23 UTC (History)
4 users (show)

See Also:


Attachments

Description Takeshi Yoshino 2012-08-31 05:34:29 UTC
https://www.w3.org/Bugs/Public/show_bug.cgi?id=18416

IIUC, this change means that program with bug that is substituting wrong value to binaryType will be no longer warned by an exception.

Is there any benefit of enum making this change worth?
Comment 1 Simon Pieters 2012-08-31 07:54:38 UTC
Wrong values throw TypeError per WebIDL.
Comment 2 Takeshi Yoshino 2012-08-31 07:58:28 UTC
Yes for function. Is it true for assignment too?

Example here says it's ignored.
http://dev.w3.org/2006/webapi/WebIDL/#idl-enums
Comment 3 Simon Pieters 2012-08-31 08:18:51 UTC
That non-normative example seems wrong. http://dev.w3.org/2006/webapi/WebIDL/#es-enumeration says to throw.
Comment 4 Ms2ger 2012-08-31 08:40:46 UTC
But <http://dev.w3.org/2006/webapi/WebIDL/#es-attributes> has a special case.

The reason to do this is to be consistent with the other enumerated attributes in the platform.
Comment 5 Ian 'Hixie' Hickson 2012-09-28 03:23:02 UTC
Yeah, the plan here is to be consistent with other things in the platform.
Comment 6 Ian 'Hixie' Hickson 2012-09-28 03:23:24 UTC
(Good browsers can give a warning in their consoles, btw.)