<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27460</bug_id>
          
          <creation_ts>2014-11-28 10:36:14 +0000</creation_ts>
          <short_desc>Notes: handled/not handled in onerror wrong?</short_desc>
          <delta_ts>2016-02-23 17:49:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#runtime-script-errors</bug_file_loc>
          <status_whiteboard>[good first bug]</status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>richarupela95</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>115659</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-11-28 10:36:14 +0000</bug_when>
    <thetext>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?

&quot;If event was canceled, then the error is handled. Otherwise, the error is not
handled.&quot;

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3319
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3320

I think &quot;return false&quot; 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 &quot;return true&quot;.)

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)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115752</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-12-01 19:14:55 +0000</bug_when>
    <thetext>&apos;true&apos; cancels, for &apos;error&apos; events:

https://html.spec.whatwg.org/multipage/webappapis.html#the-event-handler-processing-algorithm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115782</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-12-02 10:49:17 +0000</bug_when>
    <thetext>OK. I didn&apos;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 ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115850</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-12-03 19:54:15 +0000</bug_when>
    <thetext>Yeah, good idea.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125217</commentid>
    <comment_count>4</comment_count>
    <who name="rits">richarupela95</who>
    <bug_when>2016-02-23 08:24:22 +0000</bug_when>
    <thetext>&quot;return true is canceled for &quot;error&quot; events, hence do not report error to console.&quot;
is this fine?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125218</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-02-23 09:14:34 +0000</bug_when>
    <thetext>I think it would be better to reference the &quot;the event handler processing algorithm&quot; directly using &lt;span data-x=&quot;&quot;&gt; in the note. I.e.,

  &lt;p class=&quot;note&quot;&gt;Returning true cancels &lt;var&gt;event&lt;/var&gt; per &lt;span data-x=&quot;...&quot;&gt;the event handler ...&lt;/span&gt;.&lt;/p&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125243</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-02-23 17:49:10 +0000</bug_when>
    <thetext>https://github.com/whatwg/html/pull/725</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>