Location bar does not handle numeric HTML entities

REOPENED
Unassigned

Status

()

P5
normal
REOPENED
10 years ago
5 months ago

People

(Reporter: Ehsan, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

10 years ago
STR:

1. Enter a data URI which contains numeric HTML entities in the location bar, such as:
data:text/html,فارسی
2. Hit Enter.
3. Modify a numeric value, or anything after the first hash for that matter.
4. The new URI wouldn't load, because the changed text is interpreted as an anchor specifier.

The problem is that the location bar blindly assumes that anything after a hash is an anchor for all URI schemes, which in general is not correct.

Comment 1

9 years ago
Is this a bug?  If I am not mistaken, the URL
> data:text/html,فارسی
is incorrect and there is no way to tell that the hash symbols are not meant to be a separator for a fragment identifier without the knowledge of the grammar of HTML.  It should be written as
> data:text/html,&%231601;&%231575;&%231585;&%231587;&%231740;
in the first place.

However, the current behavior (interpreting
> data:text/html,فارسی
as
> data:text/html,&%231601;&%231575;&%231585;&%231587;&%231740;
and not updating the content when the numbers are modified) is inconsistent.

Comment 2

7 months ago
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Last Resolved: 7 months ago
Resolution: --- → INACTIVE
Status: RESOLVED → REOPENED
Priority: -- → P5
Resolution: INACTIVE → ---
You need to log in before you can comment on or make changes to this bug.