RESOLVED INVALID 222528
<button onclick='window.confirm("A&amp;B&quot;C&apos;D")'>E</button> cannot be parsed
https://bugs.webkit.org/show_bug.cgi?id=222528
Summary <button onclick='window.confirm("A&amp;B&quot;C&apos;D")'>E</button> cannot b...
Дилян Палаузов
Reported 2021-02-28 05:00:00 PST
The file https://mail.aegee.org/t-quoting.html contains: <html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head><body> <button onclick='window.confirm("A&amp;B&quot;C&apos;D")'>E</button> <button onclick="window.confirm('F&amp;G&quot;H&apos;I')">J</button> </body></html> I do not know how this will be rendered here, but both actions contain quoted window.confirm which contains ampersand followed by apos and quot . For both buttons the system says SyntaxError: Unexpected identifier 'C'. Expected ')' to end an argument list. I use WebKitGtk 2.30.5. The same happens in Firefox, reported at https://bugzilla.mozilla.org/show_bug.cgi?id=1695491 and in Chromium reported at https://bugs.chromium.org/p/chromium/issues/detail?id=1183132 .
Attachments
Anne van Kesteren
Comment 1 2021-03-01 00:37:39 PST
Note You need to log in before you can comment on or make changes to this bug.