This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: https://html.spec.whatwg.org/multipage/webappapis.html Multipage: https://html.spec.whatwg.org/multipage/#runtime-script-errors Complete: https://html.spec.whatwg.org/#runtime-script-errors Referrer: https://html.spec.whatwg.org/multipage/ Comment: handled/not handled in onerror wrong? "If event was canceled, then the error is handled. Otherwise, the error is not handled." http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3319 http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3320 I think "return false" means the event is canceled, but at least Blink/WebKit/Gecko report the error to the console. (And do not report to the console for "return true".) Posted from: 90.230.218.37 by simonp@opera.com User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.62 Safari/537.36 OPR/26.0.1656.20 (Edition beta)
'true' cancels, for 'error' events: https://html.spec.whatwg.org/multipage/webappapis.html#the-event-handler-processing-algorithm
OK. I didn't find that when looking for it. :-) Could you add a note about this in step 15 of https://html.spec.whatwg.org/multipage/webappapis.html#runtime-script-errors ?
Yeah, good idea.
"return true is canceled for "error" events, hence do not report error to console." is this fine?
I think it would be better to reference the "the event handler processing algorithm" directly using <span data-x=""> in the note. I.e., <p class="note">Returning true cancels <var>event</var> per <span data-x="...">the event handler ...</span>.</p>
https://github.com/whatwg/html/pull/725