Closed
Bug 86092
Opened 23 years ago
Closed 23 years ago
Escaped characters in <a href="javascript:"> blocks the javascript interpreter
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: ebourg, Assigned: jst)
Details
Attachments
(1 file)
529 bytes,
text/html
|
Details |
Mozilla is unable to execute a script called inside an anchor if there is a non
ascii-character escaped in th href property. This might be related to bug 40469.
I'm appending a testcase.
<a href="javascript:confirm('mOziLLa ?');">question 1</a><br>
No non-ascii character in href, the script works as intented and popup a message
dialog.
<a href="javascript:confirm('mÖzïLLà ?');">question 2</a><br>
Non-ascii characters in href, the whole property is escaped into
"<code>javascript:confirm(%27m%D6z%EFLL%E0%20?%27);</code>", the javascript
interpreter reports a syntax error.
Fix suggestion : do not escape href when starting by "javascript:"
Reporter | ||
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
bug 51355 has patch for this being reviewed
*** This bug has been marked as a duplicate of 51355 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•