<?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>19125</bug_id>
          
          <creation_ts>2012-09-28 17:48:57 +0000</creation_ts>
          <short_desc>Form &quot;submit&quot; event should bubble.</short_desc>
          <delta_ts>2012-12-30 12:05:32 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>needs test</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yonathan Randolph">yonathan</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>74819</commentid>
    <comment_count>0</comment_count>
    <who name="Yonathan Randolph">yonathan</who>
    <bug_when>2012-09-28 17:48:57 +0000</bug_when>
    <thetext>In the form submission algorithm[1], the event step should be, &quot;fire a simple event that **bubbles and** is cancelable named submit&quot; The event bubbles according to DOM 2 Events[2], and this is consistent with all the browsers I tested (Chrome, Firefox, Opera)[3].

  [1]: http://www.whatwg.org/specs/web-apps/current-work/#form-submission-algorithm
  [2]: http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgroupings-htmlevents-h3
  [3]: http://jsfiddle.net/yonran/WanrL/embedded/result/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74886</commentid>
    <comment_count>1</comment_count>
    <who name="Yonathan Randolph">yonathan</who>
    <bug_when>2012-09-29 16:08:46 +0000</bug_when>
    <thetext>The submit and reset events actually don’t bubble in IE 8 or below according to quirksmode[1], and jQuery 1.4+ attaches click and keypress listeners to be simulate bubbling submit events. So the spec is currently descriptive of IE 8 but probably should proscribe the bubbling behavior.

  [1]: http://www.quirksmode.org/dom/events/submit.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80696</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-12-30 03:37:06 +0000</bug_when>
    <thetext>Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80697</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-12-30 03:38:28 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7609.
Check-in comment: Mostly, browsers seem to make these events bubble.
http://html5.org/tools/web-apps-tracker?from=7608&amp;to=7609</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>