Closed Bug 393533 Opened 17 years ago Closed 17 years ago

"&euro" is displayed as the EURO_CURRENCY_SIGN not as "&euro"

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

VERIFIED DUPLICATE of bug 278404

People

(Reporter: Rostislav.Svoboda, Unassigned)

Details

User-Agent: Opera/9.23 (Windows NT 5.1; U; fr) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 "€" should produce: EURO_CURRENCY_SIGN "&euro" should produce: "&euro" or am I wrong? Reproducible: Always Steps to Reproduce: 1. 2. 3.
The semicolon is normally required, yes. But we also accept a character entity reference without a semicolon, for IE compatibility. The problem is that a lot of websites are incorrect, and they kept filing bugs because our display was different from IE. See http://www.w3.org/TR/html4/charset.html#entities "Note. In SGML, it is possible to eliminate the final ";" after a character reference in some cases (e.g., at a line break or immediately before a tag). In other circumstances it may not be eliminated (e.g., in the middle of a word). We strongly suggest using the ";" in all cases to avoid problems with user agents that require this character to be present." For IE compatibility, we're even less strict. A space will also stop the token. If you really like "&euro", then you should use "&euro".
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.