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

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