Closed
Bug 121275
Opened 23 years ago
Closed 23 years ago
escape(string) doesn't return correct value if string contains html entities
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: bugzilla, Assigned: jst)
References
()
Details
(Keywords: qawanted)
Attachments
(1 file)
253 bytes,
text/html
|
Details |
if you have a title tag like this:
<title>gemal › 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
Comment 1•23 years ago
|
||
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.
Comment 2•23 years ago
|
||
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
Comment 3•23 years ago
|
||
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: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•