Bug 8510 - submit event doesn't bubble - it's supposed to.
Summary: submit event doesn't bubble - it's supposed to.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 420+
Hardware: Macintosh OS X 10.4
: P2 Normal
Assignee: Geoffrey Garen
URL:
Keywords: EasyFix
Depends on:
Blocks:
 
Reported: 2006-04-21 00:11 PDT by Maciej Stachowiak
Modified: 2006-04-22 00:29 PDT (History)
0 users

See Also:


Attachments
Fix (4.70 KB, patch)
2006-04-21 14:42 PDT, Geoffrey Garen
sullivan: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Stachowiak 2006-04-21 00:11:40 PDT
Here's a simple test case:

<div onsubmit="alert('submit')">
<form action="?foo">
<input type="submit">

The alert fires in other browsers. I suspect this is just a matter of changing false to true on this line of HTMLFormElement.cpp:

   if ( dispatchHTMLEvent(submitEvent,false,true) && !m_doingsubmit )
Comment 1 Geoffrey Garen 2006-04-21 12:56:41 PDT
I'm on it.
Comment 2 Geoffrey Garen 2006-04-21 14:42:26 PDT
Created attachment 7885 [details]
Fix
Comment 3 John Sullivan 2006-04-21 16:29:24 PDT
Comment on attachment 7885 [details]
Fix

nice and simple
Comment 4 Geoffrey Garen 2006-04-22 00:29:39 PDT
Landed.