Closed Bug 270408 Opened 20 years ago Closed 20 years ago

html rendering issue &image appears as a strange character

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
trivial

Tracking

()

RESOLVED INVALID

People

(Reporter: oliver, Assigned: bugzilla)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

On this test page that I have created that illustrates the problem: 
http://www.tpoll.com/misc/firefoxtest.htm

& image (without the space) appears as a strange character, viewing the source
will show you various different ways & image is displayed with subtle differences.

I found this from posting a link on a forum, so it appears nested under various
tags as well as on its own on a page.

Reproducible: Always
Steps to Reproduce:
1. Create a page with &image on it (& image without the space between)
2. Run it in Firefox

Actual Results:  
ℑ appears

Expected Results:  
&image should be shown.
It's supposed to do that.  There is a special character ℑ just like &
or " or whatever.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Is it supposed to that when there is no trailing ; ?

Eg &image

rather than

ℑ (which I agree is escaped html)
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
(In reply to comment #2)
> Is it supposed to that when there is no trailing ; ?
> 
> Eg &image
> 
> rather than
> 
> ℑ (which I agree is escaped html)

Yes.  Although a trailing ; is preferred, and required in some cases.

Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → INVALID
That's strange, I wasn't aware the trailing ; was optional - will have to look
in the W3C specs etc. Oh and FYI - IE doesn't behave in this way.
You need to log in before you can comment on or make changes to this bug.