[wp-meta] [Making WordPress.org] #7459: Enabling #enable-experimental-web-platform-features in Chromium breaks custom queries
Making WordPress.org
noreply at wordpress.org
Fri Feb 9 18:11:29 UTC 2024
#7459: Enabling #enable-experimental-web-platform-features in Chromium breaks
custom queries
--------------------------+--------------------
Reporter: westonruter | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: Trac | Keywords:
--------------------------+--------------------
With the `#enable-experimental-web-platform-features` flag enabled in
Chromium (both Chrome and Edge), attempting to do create a Custom Query
(such as by Summary, Description, or Reporter) results in an error in the
console:
> 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>')
This was also reported [https://trac.edgewall.org/ticket/13141 upstream]
to Trac directly 5 years ago, but closed as a Chrome-specific bug.
Nevertheless, it seems this might not be the case as the
[https://issues.chromium.org/issues/41450238 Chromium ticket] was closed
as wontfix.
I was able to fix the problem locally via
[https://developer.chrome.com/docs/devtools/overrides 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));
}}}
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/7459>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list