Closed
Bug 458039
Opened 16 years ago
Closed 16 years ago
URL part wrongly interpreted as entity
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: anders, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092510 Ubuntu/8.04 (hardy) Firefox/3.0.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092510 Ubuntu/8.04 (hardy) Firefox/3.0.3
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
Firefox bug:<p/>
<a href="http://test/index.php?get=60&apos=14">XXX</a>
</p>
Expected in link:<br/>
http://test/index.php?get=60&apos=14
<p/>
But got:<br/>
http://test/index.php?get=60'=14
</body>
</html>
Reproducible: Always
Steps to Reproduce:
Create HTML with "&apos=xx" as part of the URL.
Actual Results:
Interprets URL's get value as entity.
Expected Results:
Do not interpret part of URL unless it's really an entity (with closing semicolon!)
Works in Internet explorer.
Comment 1•16 years ago
|
||
Firefox does it's best to reconstruct what it thought you might have meant in that invalid HTML. Since ' is a valid entity that is the best match. If you actually want Firefox to get things right use valid HTML.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 2•16 years ago
|
||
Ok, but if you want to try the best:
If a equal sign (=) follows (and not a semicolon), the best would be to
leave it as it was...
Or:
?pos=6&wpos=1&bpos=4&apos=4
Here non of the other &... parts is an entity, why interpreting the last one?
Comment 3•16 years ago
|
||
Because pos, bpos, wpos aren't the starts of valid entities. apos is, in fact it is a perfect match. Firefox is assuming you only made the mistake of omitting a ";" rather than making the mistake of omitting "amp;"
You need to log in
before you can comment on or make changes to this bug.
Description
•