W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: Synchronous XMLHttpRequest and events

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 21 Jun 2011 17:03:11 +0200
To: Olli@pettay.fi, "Jonas Sicking" <jonas@sicking.cc>
Cc: public-webapps@w3.org, "Boris Zbarsky" <bzbarsky@mit.edu>
Message-ID: <op.vxflflwt64w2qv@anne-van-kesterens-macbook-pro.local>
On Sat, 14 May 2011 00:17:55 +0200, Jonas Sicking <jonas@sicking.cc> wrote:
> Yeah, I think we can get away with this.
> The one case where it seems that Gecko and the spec differentiate for
> the readystatechange event is that gecko dispatches readystatechange
> when going to the DONE state even if the network request failed during
> a sync-load. The spec only dispatches it for successful loads.
> In other words, Gecko always dispatches readystatechange (with
> .readyState set to 4) before send() returns.

Hmm, send() either returns and dispatches the event, or it throws an  
exception, for synchronous requests.

Anne van Kesteren
Received on Tuesday, 21 June 2011 15:03:49 UTC

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