Closed Bug 121275 Opened 23 years ago Closed 22 years ago

escape(string) doesn't return correct value if string contains html entities

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows 2000
defect

Tracking

()

RESOLVED DUPLICATE of bug 44272

People

(Reporter: bugzilla, Assigned: jst)

References

()

Details

(Keywords: qawanted)

Attachments

(1 file)

if you have a title tag like this:
<title>gemal &rsaquo; gemal</title>
then the javascript:
escape(document.title)
returns "gemal%20"
and NOT "gemal%20%26rsaquo%3B%20gemal" which is the correct value!

the test case can been seen at:
http://gemal.dk/test/esctitle.html
Attached file Testcase
Testcase at URL does not exist anymore. Attaching testcase.

STEPS TO REPRODUCE:
1] Load Testcase I'm attaching.
2] Compare Actual Results & Expected Results.

Both should be same.
Severity = MEDIUM [No Crash, Functional failure, No Cosmetic failure]
Visibility = MEDIUM [Dont see any real world website usage, Gets one point of 
compatibility with other browsers since it works on other browsers. gets one 
more point on compliance with adopted techonology, that is JS] 

Priority = Visibility * Severity

Priority = p3

adding word "qawanted" because I'm setting this priority on available data & if 
someone feels otherwise then please investigate this more & feel free to change 
this priority.
Keywords: qawanted
Priority: -- → P3
No, they shouldn't be the same. The bug reporter is wrong. Entities are
converted to characters. The "escape()" function gets a stream of unicode
characters, not the original entities.

But there is a bug here: escape() isn't working ok with unicode chars, so this
bug is either invalid or a duplicate of bug 44272.


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

Attachment

General

Created:
Updated:
Size: