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

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 UTC