Closed
Bug 60576
Opened 24 years ago
Closed 24 years ago
javascipt: urls with umlauts in strings get escaped and then cause syntax error when executing the code
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
Future
People
(Reporter: martin.honnen, Assigned: jst)
Details
(Keywords: dom0)
Attachments
(1 file)
906 bytes,
text/html
|
Details |
The following two links causes JavaScript errors when clicked:
<A HREF="javascript: window.defaultStatus =
'Wir können nicht zählen was wir wählen.';
void 0">
set status
</A>
<BR>
<A HREF="javascript: window.defaultStatus =
'Wir können nicht zählen was wir wählen.';
void 0">
set status
</A>
Mouseover the link and you already see in the status bar that mozilla strangely
escapes the whole link. Then click the link and you get a syntax error in js.
Such links work flawlessly in NN4 and should work in Mozilla for backwards
compatibility.
As long as the bug exists I add the three following workarounds here that
mozilla seems to be able to cope with:
<A HREF="javascript: window.defaultStatus =
'Wir k\366nnen nicht z\344hlen was wir w\344hlen.'; void 0">
set status
</A>
<BR>
<A HREF="javascript: window.defaultStatus =
'Wir k\xF6nnen nicht z\xE4hlen was wir w\xE4hlen.'; void 0">
set status
</A>
<BR>
<A HREF="javascript: window.defaultStatus =
'Wir k\u00F6nnen nicht z\u00E4hlen was wir w\u00E4hlen.'; void 0">
set status
</A>
Reporter | ||
Comment 1•24 years ago
|
||
Comment 2•24 years ago
|
||
Confirmed. By the way, the "default status" disappears as soon as I move the
mouse around and click around. This isn't the correct behavior, is it?
cc:ing myself.
Assignee | ||
Comment 3•24 years ago
|
||
This bug has been marked "future" because the original netscape engineer
workingon this is over-burdened. If you feel this is an error, that you or
another known resource will be working on this bug,or if it blocks your work in
some way -- please attach your concern to the bug for reconsideration.
OS: other → All
Hardware: PC → All
Target Milestone: --- → Future
Comment 5•24 years ago
|
||
Sounds like a dup indeed. Martin what do you think?
Reporter | ||
Comment 6•24 years ago
|
||
*** This bug has been marked as a duplicate of 51355 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•