W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2011

[whatwg] script element onerror event

From: Mike Wilson <mikewse@hotmail.com>
Date: Sun, 29 May 2011 20:51:33 +0200
Message-ID: <SNT129-DS5B562F0D38017417F2973A4780@phx.gbl>
John J. Barton wrote:

Step 14 is unclear or incomplete however:
" If the src
attribute's value is the empty string or if it could not be resolved,..."

Does this mean the error handler will be called in the case of 4XX, 5XX, and
syntax errors?

If you follow the algorithm a bit further down you have this in step 15.2:

If the load resulted in an error (for example a DNS error, or an HTTP 404
Executing the script block must just consist of firing a simple event named
error at the element.

Best regards
Received on Sunday, 29 May 2011 11:51:33 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:06 UTC