Re: ISSUE-58: XMLHttpRequest.abort() should just reset the object

Anne van Kesteren wrote:
> 
> On Thu, 06 Apr 2006 11:28:09 +0200, Jonas Sicking <jonas@sicking.cc> wrote:
> 
>>>> If that is indeed true we need to fix it I agree. Is there a 
>>>> sensible  value we could set .status to for example?
>>>
>>>
>>> Lets keep .status an HTTP status code. What about dispatching an 
>>> abort  event on the object as I suggested? Not sure if that's 
>>> appropriate for  this version though...
>>
>>
>> We have already talked about setting .status to -1 in some error  
>> conditions. Aborting is arguably an error condition.
> 
> I don't like that idea. I believe we also opted not to do it given that  
> people might depend on the way .status acts now in certain error  
> conditions. It also makes the attribute unnecessary complex.

I don't think we have addressed error handling yet, so we should just 
include this case when we decide that.

/ Jonas

Received on Friday, 7 April 2006 07:32:40 UTC