Closed Bug 1685485 Opened 5 years ago Closed 5 years ago

The string "&curren" (as in query strings like &current_id=1) gets replaced by ¤ character

Categories

(Firefox :: Untriaged, defect)

78 Branch
defect

Tracking

()

RESOLVED INVALID

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 "...&current_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 "&curren" gets replace by the currency character "¤", although there is no semicolon after it.

"&curren" 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.

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 ...&current_id=1 an entity was recognized.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: