Closed Bug 183921 Opened 22 years ago Closed 22 years ago

<font color=> tag parsed wrong when slanted quotes used

Categories

(Core :: Layout: Text and Fonts, defect)

x86
Windows NT
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 121738

People

(Reporter: igopogo, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.2b) Gecko/20021016
Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.2b) Gecko/20021016

a tag like <font color  = ”ff0000”> is not parsed correctly.  It appears the most sig byte is replaced by 0x00 (so red appears as black, etc).  Granted one should use straight quotes in tags, but other browsers appear to handle slanted quotes correctly.

Note problem occurs in current version and in 1.0rc2, at least.

Reproducible: Always

Steps to Reproduce:
1. create a test page with the following two lines:
<font color = ”ff0000”> this should be red </font>
<font color = "ff0000"> this is red </font>

2. load it.
3.

Actual Results:  
first line appears in black text, second line appears in red.

Expected Results:  
both lines should be the same color (namely red).
The curly quote is not a valid attribute delimeter in HTML, so it's parsed as
part of the color spec.  Yes, our parsing of invalid color specs is slightly
different from IE and NS4 in some remote edge cases.  No, we have no plans to
change it.

*** This bug has been marked as a duplicate of 121738 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.