Closed Bug 566160 Opened 14 years ago Closed 14 years ago

HTMLInputElement and HTMLButtonElement should implement formaction attribute which override HTMLFormElement action attribute

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b5
Tracking Status
blocking2.0 --- beta5+

People

(Reporter: mounir, Assigned: mounir)

References

()

Details

(Keywords: dev-doc-complete, html5)

Attachments

(1 file, 2 obsolete files)

If a form is submitted via a submit button and if the element has a formaccept attribute, it should override the form accept attribute.
s/accept/action/ in the previous comment
Summary: HTMLInputElement and HTMLButtonElement should implement formaccept attribute which override HTMLFormElement accept attribute → HTMLInputElement and HTMLButtonElement should implement formaction attribute which override HTMLFormElement action attribute
Attached patch Tests v1 (obsolete) — Splinter Review
Attachment #445667 - Flags: review?(jonas)
Attached patch Patch v1 (obsolete) — Splinter Review
Attachment #445668 - Flags: review?(jonas)
Comment on attachment 445667 [details] [diff] [review]
Tests v1

You might want to also test simply calling .click() on the elements.
Attachment #445667 - Flags: review?(jonas) → review+
Blocker request: we would like to have this HTML5 Forms feature for ff4.
blocking2.0: --- → ?
Depends on: 566064
Keywords: dev-doc-needed
Attached patch Patch v2Splinter Review
r=sicking

This is adding a test with .click() and refreshing the patch.
Attachment #445667 - Attachment is obsolete: true
Attachment #445668 - Attachment is obsolete: true
Attachment #467035 - Flags: superreview?(Olli.Pettay)
Attachment #467035 - Flags: superreview?(Olli.Pettay) → superreview+
blocking2.0: ? → beta5+
Pushed: http://hg.mozilla.org/mozilla-central/rev/80b450a23c6b
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b5
Depends on: 602512
No longer depends on: 602512
You need to log in before you can comment on or make changes to this bug.