W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

[Bug 16223] Change .readyState to use string values rather than numeric constants

From: <bugzilla@jessica.w3.org>
Date: Tue, 13 Mar 2012 03:57:27 +0000
To: public-webapps@w3.org
Message-Id: <E1S7IrX-00056Z-RL@jessica.w3.org>

Ian 'Hixie' Hickson <ian@hixie.ch> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |ian@hixie.ch
         Resolution|                            |WONTFIX

--- Comment #1 from Ian 'Hixie' Hickson <ian@hixie.ch> 2012-03-13 03:57:26 UTC ---
While I agree with the design principle, I think it's not a big enough win to
be worth the churn here. People complain all the time that we keep changing
things — we should only do it when we have a truly compelling reason (e.g. a
security problem).

In practice, little non-debug code will likely end up using
websocket.readyState anyway. It's easier to use the events. It was mostly added
for consistency with XMLHttpRequest, which also uses numbers — and people don't
generally find it onerous to remember which readyState is which for that API.

Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Tuesday, 13 March 2012 03:57:30 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:38 UTC