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

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

From: <bugzilla@jessica.w3.org>
Date: Tue, 13 Mar 2012 03:57:52 +0000
To: public-webapps@w3.org
Message-Id: <E1S7Irw-00059W-R1@jessica.w3.org>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16224

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:52 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
eventsource.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:58:13 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:50 GMT