WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
222528
<button onclick='window.confirm("A&B"C'D")'>E</button> cannot be parsed
https://bugs.webkit.org/show_bug.cgi?id=222528
Summary
<button onclick='window.confirm("A&B"C'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&B"C'D")'>E</button> <button onclick="window.confirm('F&G"H'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
Add attachment
proposed patch, testcase, etc.
Anne van Kesteren
Comment 1
2021-03-01 00:37:39 PST
(See
https://bugzilla.mozilla.org/show_bug.cgi?id=1695491#c3
.)
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug