Bug 222528
Summary: | <button onclick='window.confirm("A&B"C'D")'>E</button> cannot be parsed | ||
---|---|---|---|
Product: | WebKit | Reporter: | Дилян Палаузов <dpa-webkit> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | annevk |
Priority: | P2 | ||
Version: | Other | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Дилян Палаузов
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
(See https://bugzilla.mozilla.org/show_bug.cgi?id=1695491#c3.)