[Webkit-unassigned] [Bug 99712] New: Submit-buttons containing other elements does not trigger form submission

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 18 06:08:58 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=99712

           Summary: Submit-buttons containing other elements does not
                    trigger form submission
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://junk.fizkerinc.dk/bugs/webkit-button-submit.htm
                    l
        OS/Version: Windows 7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: webkit.bugzilla at fizkerinc.dk


When having a button-element with type=submit contain another element (such as a label), clicking the containing element will not trigger form-submission.

Clicking directly on the button (instead of the child element) will trigger submission as expected.


The example urls shows the minimum code that provokes this error. The form-submission prints the current time in a span after the form, to show that something has happened.


The button does receive click-events properly, so adding 'onclick=this.form.submit()' to the button will make the form submit, but that should not be necessary, and also avoids triggering the submit-event for the form.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list