Closed Bug 60576 Opened 24 years ago Closed 23 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)

defect

Tracking

()

VERIFIED DUPLICATE of bug 51355
Future

People

(Reporter: martin.honnen, Assigned: jst)

Details

(Keywords: dom0)

Attachments

(1 file)

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&ouml;nnen nicht z&auml;hlen was wir w&auml;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>
Attached file test case
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.
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
Keywords: dom0
This is a duplicate of bug 51355.
Sounds like a dup indeed. Martin what do you think?

*** This bug has been marked as a duplicate of 51355 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
verified dup.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: