- From: Olli Pettay <Olli.Pettay@helsinki.fi>
- Date: Tue, 09 Sep 2008 12:45:33 +0300
- To: Garrett Smith <dhtmlkitchen@gmail.com>
- CC: olli@pettay.fi, Jonas Sicking <jonas@sicking.cc>, Erik Dahlström <ed@opera.com>, "public-webapps@w3.org" <public-webapps@w3.org>, Charles McCathieNevile <chaals@opera.com>, public-svg-wg@w3.org
Garrett Smith wrote: > > Are you asking: What if the loadend handler calls open() on the same > connection in loadend? Right. > > When loadend is called, the actual completion event ("abort" | "fail" > | "load" ) has not fired. > > Calling open should cause the previous connection to end. Jonas > suggested that the corresponding event ("abort" | "fail" | "load") > should then fire unless e.preventDefault() is called. That is ok to me, even without the default behavior. This is just something to mention in the XHR2 spec. And the spec should handle also cases like calling abort() in loadend handler etc. > > Just curious: Why call open() again in loadend? I don't know. But I'm sure someone will write such script. -Olli
Received on Tuesday, 9 September 2008 09:47:18 UTC