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)

PowerPC
Mac System 8.5
defect

Tracking

()

VERIFIED FIXED

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.
Assignee: michaelp → vidur
Component: Compositor → DOM Level 0
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.
Status: NEW → ASSIGNED
Target Milestone: M8
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.
This problem still occurs in the June 30th Build.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
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.
Status: RESOLVED → VERIFIED
Fixed in the July 7th build(1999070708).
You need to log in before you can comment on or make changes to this bug.