The string "¤" (as in query strings like &current_id=1) gets replaced by ¤ character
Categories
(Firefox :: Untriaged, defect)
Tracking
()
People
(Reporter: Chris78, Unassigned)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Steps to reproduce:
I have an html page contains the text with "...¤t_id=1&..." in it.
It's in a text node, not within the href attribute of a link though.
Note, that I have escaped the & in the first line by &, so the problem does not show up here too (which could be more than confusing).
Actual results:
The fragment "¤" gets replace by the currency character "¤", although there is no semicolon after it.
"¤" displays as "¤"
while other entities like
"&bull" displays as "&bull"
and only with a semicolon
"•" displays as "•"
Expected results:
HTML entities should only be replaced by their corresponding special characters if they are terminated by semicolon.
| Reporter | ||
Comment 1•5 years ago
|
||
Ok, the & character should be escaped using & in HTML.
And chrome shows the same behavior regarding the above problem
I was just used to have to add a semicolon to most entities, like bull, uuml, auml, ouml and szlig.
So it looked like a defect to me, that in ...¤t_id=1 an entity was recognized.
Description
•