Closed
Bug 5101
Opened 26 years ago
Closed 25 years ago
Bgcolor and Fgcolor javascript properties is not supported.
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
FIXED
M8
People
(Reporter: chrispetersen, Assigned: vidur)
References
()
Details
Version: Apprunner
Build: April 13th M4
Platform: Mac
Other Platforms: Win 95, Win NT
Expected Results: The bgcolor of the page should be black and the text color
should be white.
What I got:The background color is default ( white or grey) and the text is
black.
Steps to reproduce:
1) Open bgcolor_fgcolor_js_test.html in Apprunner.
2) The page's bgcolor is display as black and text remains as black.
Updated•25 years ago
|
Assignee: michaelp → vidur
Component: Compositor → DOM Level 0
Comment 1•25 years ago
|
||
This is a layout problem. The body is being created by document.write, but when
the document properties are set, the nsIDOMElement for the <BODY> doesn't exist
yet in nsHTMLDocument::GetBodyContent(), which returns PR_FALSE. Either a layout
or DOM bug, take your pick.
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M8
Assignee | ||
Comment 2•25 years ago
|
||
A DOM bug, I guess. The problem, as Patrick mentioned, is that the document
properties mentioned are set in the head (before the body is created) and our
current implementation expects the body to be around before they are set.
Reporter | ||
Comment 3•25 years ago
|
||
This problem still occurs in the June 30th Build.
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•25 years ago
|
||
Switched the document.bgColor,fgColor,etc. setters to set up a style rule in the
HTMLStyleSheet if the BODY element doesn't yet exist. Fix checked in on
7/6/1999.
Reporter | ||
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 5•25 years ago
|
||
Fixed in the July 7th build(1999070708).
You need to log in
before you can comment on or make changes to this bug.
Description
•