W3C home > Mailing lists > Public > public-webapi@w3.org > March 2006

Re: ISSUE-41: Does XMLHttpRequest have constants for readyState? No.

From: Robin Berjon <robin.berjon@expway.fr>
Date: Fri, 17 Mar 2006 12:01:40 +0100
Message-Id: <C88060F8-0340-4529-B965-45286DDB5F89@expway.fr>
To: Web APIs WG <public-webapi@w3.org>

On Mar 17, 2006, at 10:13, Web APIs Issue Tracker wrote:
> Robin revised the specification mostly for IDL markup and made the  
> different
> states of readyState constants. However, running:
>  <script>
>   var r = new XMLHttpRequest;
>   alert(r.OPEN_STATE)
>  </script>
> ... in Opera and Firefox returns undefined. I'm removing the  
> constants because
> of this. This issue is to make sure everyone is aware of that  
> change. (Unless
> someone can point out that Internet Explorer does do constants, but  
> given MSDN
> that seems unlikely...)

The constants are there mostly for readability, and some consistency  
with the DOM. A better option would be to keep them, but specify that  
they need not (or must not) be exposed in the UA.

Robin Berjon
    Senior Research Scientist
    Expway, http://expway.com/
Received on Friday, 17 March 2006 11:01:46 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:20 UTC