Needs work
Project:
Drupal core
Version:
main
Component:
forms system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2019 at 07:48 UTC
Updated:
6 Feb 2026 at 13:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ytsurkComment #3
jrockowitz commentedRight now, Drupal's Form API outputs a lowercased form method attribute for 'post'.
I would argue that the form method attribute is generally lowercase and Drupal.behaviors.formSingleSubmit should be updated to support 'GET' or 'get'. Uppercasing the form method attribute could cause some (unlikely) regressions if someone was looking for a lowercased 'get' or 'post'.
Comment #5
berdirComment #6
ytsurkComment #7
ytsurkComment #8
ytsurkA new patch for the case insensitive approach. I did not use a i-RegEx
form:not([method~="GET" i])by intent, as it seems not to be supported by IE11, see https://stackoverflow.com/questions/19465157/case-insensitive-jquery-att....Comment #9
ytsurkMade sure to keep storing the form values.
Comment #10
ytsurkComment #11
ytsurkComment #18
berdirRerolled.
Comment #19
ranjith_kumar_k_u commentedComment #22
smustgrave commentedMoving back to needs work for the tests.
Also most likely will need a reroll for 10.1 but triggered #19 for 10.1.x tests.
Comment #23
berdirRerolled for 9.5 and 10.1. No idea where to start with tests for this or if we have any existing tests for the functionality in HEAD.
Comment #24
smustgrave commentedI would look in FormBuilderTest maybe?
Line 897 does something with #method
Maybe could expand dataProvider to provide one that fails? Not sure how webform is triggering the issue.
Comment #25
ytsurkThe issue in webform is resolved #3024957: Drupal.behaviors.formSingleSubmit method name should be case-insensitive - multiple GET submissions not possilbe.
The test could live around FormValuesTest,
we would need a from like $this->drupalGet('ajax_forms_test_get_form') altered to have it's method lowercase.
Then doing two submits .. and the second should work too.