This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16305 - 'error' event defined but never fired
Summary: 'error' event defined but never fired
Status: RESOLVED DUPLICATE of bug 16306
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: XHR (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
URL: http://dvcs.w3.org/hg/xhr/raw-file/8d...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-10 09:42 UTC by Glenn Adams
Modified: 2012-03-11 17:04 UTC (History)
4 users (show)

See Also:


Attachments

Description Glenn Adams 2012-03-10 09:42:22 UTC
nowhere in the specification is there language stating that an error event is fired (or at least I couldn't find it)
Comment 1 Odin Hørthe Omdal 2012-03-10 10:04:12 UTC
It is in fact defined: http://dvcs.w3.org/hg/xhr/raw-file/8d4e9ccfdbd4/Overview.html#network-error
---

When something is said to be a network error run the request error steps for exception "NetworkError" and event error.

When something is said to be an abort error run the request error steps for exception "AbortError" and event abort.

When something is said to be an timeout error run the request error steps for exception "TimeoutError" and event timeout.

When something is said to be a request error for exception exception and event event run these steps:

[...]

9. Fire a progress event named event.
Comment 2 Glenn Adams 2012-03-10 19:02:06 UTC
(In reply to comment #1)
> It is in fact defined:
> http://dvcs.w3.org/hg/xhr/raw-file/8d4e9ccfdbd4/Overview.html#network-error
> ---
> 
> When something is said to be a network error run the request error steps for
> exception "NetworkError" and event error.
> 
> When something is said to be an abort error run the request error steps for
> exception "AbortError" and event abort.
> 
> When something is said to be an timeout error run the request error steps for
> exception "TimeoutError" and event timeout.
> 
> When something is said to be a request error for exception exception and event
> event run these steps:
> 
> [...]
> 
> 9. Fire a progress event named event.

thanks for pointing that out; however, I see this does not use the formulaic language that is used in other event firing cases; namely, one of:

(1) fire an event named X
(2) fire a progress event named X

for consistency, I would suggest changing the text to use one of the above forms
Comment 3 Glenn Maynard 2012-03-10 19:17:15 UTC
It does use the "fire a progress event" algorithm; it's right there in step 9.

9. Fire a progress event named event.

where "event" is the parameter to the "request error" algorithm (eg. "error", "abort" or "timeout").
Comment 4 Anne 2012-03-11 17:04:58 UTC

*** This bug has been marked as a duplicate of bug 16306 ***