Summary: | The HTML5 formtarget/formaction/formenctyp/formmethod/formnovalidate attributes don't work in button tags with nested elements | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Martà Congost <marti.congost> | ||||||||
Component: | Forms | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | forms-bugs, jaepark, japhet, ksakamoto, tkent, webkit.review.bot | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | All | ||||||||||
Attachments: |
|
Created attachment 169087 [details]
Patch
Comment on attachment 169087 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=169087&action=review > LayoutTests/fast/forms/formaction-attribute.html:-16 > -var doneAction2 = false; Why did you remove this? You should mention a reason for such unclear changes in the ChangeLog entry. Created attachment 169092 [details]
Patch 2
Comment on attachment 169087 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=169087&action=review >> LayoutTests/fast/forms/formaction-attribute.html:-16 >> -var doneAction2 = false; > > Why did you remove this? > You should mention a reason for such unclear changes in the ChangeLog entry. Because this variable is not used. Updated the ChangeLog entry in Patch 2. Comment on attachment 169092 [details]
Patch 2
ok
Comment on attachment 169092 [details] Patch 2 Clearing flags on attachment: 169092 Committed r131555: <http://trac.webkit.org/changeset/131555> All reviewed patches have been landed. Closing bug. |
Created attachment 150762 [details] Test case for this issue. When clicking a button with a 'formtarget' attribute, the value of the attribute is not honored if the target of the click event is an element nested within the button, instead the button itself. I've attached a small test case for this issue, which I have reproduced on Chromium/Chrome on both Linux and Windows.