Closed Bug 1886 Opened 26 years ago Closed 25 years ago

Setting document.body.bgColor does not cause the expected effect

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

VERIFIED DUPLICATE of bug 11491

People

(Reporter: johan.a.eklund, Assigned: pierre)

References

()

Details

(Keywords: helpwanted)

Attachments

(1 file)

When assigning the document.body.bgColor property by handling the click event of a paragraph (<p onClick="changeBgColor()">) only the current paragraph is refreshed, not the whole document. When something causes a paint event like a minimize-restore manoeuvre the entire document body becomes repainted with the newly assigned color.
Status: NEW → ASSIGNED
Setting all current Open/Normal to M4.
per leger, assigning QA contacts to all open bugs without QA contacts according to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
QA Contact: 4015 → 4078
QA contact re-assigned according to the product areas we're currently working on.
Assignee: vidur → peterl
Status: ASSIGNED → NEW
Target Milestone: M4 → M5
The right notifications are happening. Is the style change not propagating to the correct frames?
*** Bug 2288 has been marked as a duplicate of this bug. ***
OS: Windows 98 → All
Hardware: PC → All
OCCURS ON: * MacOs 8.51 1999-04-07-11 (viewer, apprunner) * WinNT 4.0 1999-04-07-11 (viewer, apprunner) * RedHat 5.2 1999-04-07-11 (viewer, apprunner) HTML TESTCASE: <html> <head> <title>form_onclick</title> <script language="Javascript"> function changeBGColor (newcolor) { document.bgColor=newcolor; return false; } function changeBodyBGColor (newcolor) { document.body.bgColor=newcolor; return false; } </script> </head> <body> Select a background color:<br> <form> <input type="button" value="yellow" onClick="changeBGColor ('yellow');"> <input type="button" value="lime" onClick="changeBGColor ('lime');"> <input type="button" value="white" onClick="changeBGColor ('white');"> </form> <p onClick="changeBodyBGColor('blue')">click on this paragraph to change to blue!</p> </body> </html>
Status: NEW → ASSIGNED
Target Milestone: M5 → M6
The problem here is that the body is getting the repaint (properly), but the backound color is getting propogated into the HTML element, so the repaint is really hitting the wrong frame. I need to think about a good solution to this one. (There were other problems assigning the background color, but those are covered under another bug and fixed now anyway.)
Target Milestone: M6 → M8
Deferring to M10
Moving non-beta 1 items to M15
*** Bug 13705 has been marked as a duplicate of this bug. ***
*** Bug 12126 has been marked as a duplicate of this bug. ***
Blocks: 14648
*** Bug 14648 has been marked as a duplicate of this bug. ***
*** Bug 15634 has been marked as a duplicate of this bug. ***
Reassigning peterl's bugs to myself.
Accepting peterl's bugs that have a Target Milestone
bug 15348 seems to be related to this one.
QA Contact: phillip → gerardok
*** Bug 15348 has been marked as a duplicate of this bug. ***
bug 15348 has more testcases. wanted to point that out as i verify it as a duplicate.
Pushing my M15 bugs to M16
Please look at bug 24684 which is about setting bgColor in framesets.
Another good candidate for the bug contest this week... Could someone verify whether it's not a dup of bug 24684? Thanks.
Whiteboard: need help
Replacing "need help" in the Status Whiteboard with the 'helpwanted' keyword.
Keywords: helpwanted
Whiteboard: need help
Pierre, this is an exact dup of 11491 which you assigned to me. I'm on it so I'm marking this a dup. *** This bug has been marked as a duplicate of 11491 ***
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
VERIFY dupe
Status: RESOLVED → VERIFIED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: