Closed Bug 39318 Opened 25 years ago Closed 25 years ago

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

Categories

(Core :: CSS Parsing and Computation, defect, P3)

x86
Windows 2000
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: sean, Assigned: attinasi)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

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.
Attached file html test case
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
reassigning.
Assignee: asadotzler → rickg
QA Contact: jelwell → janc
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
Why does mozilla decide that it should be using the strict dtd?
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
Closed: 25 years ago
Resolution: --- → INVALID
verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: