doctype points to nonexistant dtd --> body bgcolor, text ignored

VERIFIED INVALID

Status

()

P3
normal
VERIFIED INVALID
19 years ago
18 years ago

People

(Reporter: sean, Assigned: attinasi)

Tracking

({testcase})

Trunk
x86
Windows 2000
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

19 years ago
http://www.ghostwheel.com/ has the following body tag:

<BODY BGCOLOR="000000" TEXT="ffffff">

but the background color of the page is not displayed in black.

Comment 1

19 years ago
Created attachment 8713 [details]
html test case

Comment 2

19 years ago
updating summary, adding "testcase" keyword, trying "parser" component
Component: Browser-General → Parser
Keywords: testcase
Summary: specified background color is ignored → doctype points to nonexistant dtd --> body bgcolor, text ignored

Comment 3

19 years ago
reassigning.
Assignee: asadotzler → rickg
QA Contact: jelwell → janc

Comment 4

19 years ago
The issue here is that the given dtd is Strict, but the <body> attributes are 
not well formed (=000000 instead of =#000000). The style system is choosing to 
behave strictly (as it should) and therefore the malformed attributes are 
ignored. 

Pierre/MarcA: It's up to you to determine the fate of this bug.
Assignee: rickg → attinasi
Component: Parser → Style System

Comment 5

19 years ago
Why does mozilla decide that it should be using the strict dtd?
(Assignee)

Comment 6

19 years ago
see the following source for why the doctype is deemed strict:
http://lxr.mozilla.org/seamonkey/source/htmlparser/src/nsParser.cpp#838

Since this is a strict doctype, the color must be formatted correctly. Note that 
in Viewer, you can change to the NavQuirks DTD and the background color works 
fine...

Marking invalid.
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → INVALID

Comment 7

18 years ago
verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.