#13141 closed defect (cantfix)
"Form Submission Failed" on /query on Chrome when adding filters
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | |
Severity: | normal | Keywords: | chrome |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Hi,
I got this error when trying to search for tickets on the Django Trac at https://code.djangoproject.com/query just now using the latest version of Chrome, 73. It also happens on Trac Trac ( https://trac.edgewall.org/query ).
After adding a filter, the form refuses to submit. Checking in the dev console I see the error message:
"Form submission failed, as the <SELECT> element named '0_description_mode' was implicitly closed by reaching the end of the file. Please add an explicit end tag ('</SELECT>')."
I checked and this does not happen in Firefox, my guess it's some new behaviour in Chrome.
I hacked around in the Chrome dev tools and found that modifying query.js to create the element with an extra '</select>' in its HTML, this stops occurring.
Attachments (2)
Change History (10)
by , 6 years ago
Attachment: | 0001-Fix-issue-13141.patch added |
---|
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Thanks, that fixed it for me. Did not even cross my mind that it could be an experimental feature, which I turned on a few weeks ago.
comment:3 by , 6 years ago
Milestone: | → undecided |
---|
Reproduced but the select element has </select>
.
$('select[name=0_description_mode]').parent().parent().html() "<td><div class="inlinebuttons"><input type="button" value="–"></div></td><th scope="row"><label id="label_0_description">Description</label></th><td class="mode"><select name="0_description_mode"><option value="~">contains</option><option value="!~">doesn't contain</option></select></td><td class="filter"><input type="text" name="0_description" size="42"></td>"
I believe that is a Chrome / Chromium issue. Please report Chrome or Chromium bug tracker. The experimental feature should be disabled.
comment:4 by , 6 years ago
Owner: | removed |
---|---|
Status: | assigned → new |
comment:5 by , 6 years ago
Keywords: | chrome added |
---|
comment:6 by , 6 years ago
comment:7 by , 6 years ago
Milestone: | undecided |
---|---|
Resolution: | → cantfix |
Status: | new → closed |
comment:8 by , 9 months ago
I just encountered this issue on the WordPress Trac instance. I opened a ticket there as well.
I was able to fix the problem locally via Local Overrides in Chrome DevTools. I modified https://s.w.org/style/trac/common/js/query.js?v=216 by simply supplying the missing </select>
:
44c44 < var e = $($.htmlFormat('<select name="$1">', name)); --- > var e = $($.htmlFormat('<select name="$1"></select>', name));
Patch