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)
Core
DOM: Core & HTML
Tracking
()
M16
People
(Reporter: johan.a.eklund, Assigned: pierre)
References
()
Details
(Keywords: helpwanted)
Attachments
(1 file)
(deleted),
text/html
|
Details |
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.
Updated•26 years ago
|
Status: NEW → ASSIGNED
Comment 2•26 years ago
|
||
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 re-assigned according to the product areas we're currently working
on.
Updated•26 years ago
|
Assignee: vidur → peterl
Status: ASSIGNED → NEW
Target Milestone: M4 → M5
Comment 4•26 years ago
|
||
The right notifications are happening. Is the style change not propagating to
the correct frames?
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>
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M5 → M6
Comment 7•25 years ago
|
||
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.)
Updated•25 years ago
|
Target Milestone: M6 → M8
Comment 8•25 years ago
|
||
Deferring to M10
Comment 9•25 years ago
|
||
Moving non-beta 1 items to M15
Comment 10•25 years ago
|
||
*** Bug 13705 has been marked as a duplicate of this bug. ***
Comment 11•25 years ago
|
||
*** Bug 12126 has been marked as a duplicate of this bug. ***
Comment 12•25 years ago
|
||
Comment 13•25 years ago
|
||
*** Bug 14648 has been marked as a duplicate of this bug. ***
Comment 14•25 years ago
|
||
*** Bug 15634 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 15•25 years ago
|
||
Reassigning peterl's bugs to myself.
Assignee | ||
Comment 16•25 years ago
|
||
Accepting peterl's bugs that have a Target Milestone
Comment 17•25 years ago
|
||
bug 15348 seems to be related to this one.
Comment 18•25 years ago
|
||
*** Bug 15348 has been marked as a duplicate of this bug. ***
Comment 19•25 years ago
|
||
bug 15348 has more testcases. wanted to point that out as i verify it as a
duplicate.
Assignee | ||
Comment 20•25 years ago
|
||
Pushing my M15 bugs to M16
Comment 21•25 years ago
|
||
Please look at bug 24684 which is about setting bgColor in framesets.
Assignee | ||
Comment 22•25 years ago
|
||
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
Assignee | ||
Comment 23•25 years ago
|
||
Replacing "need help" in the Status Whiteboard with the 'helpwanted' keyword.
Keywords: helpwanted
Whiteboard: need help
Comment 24•25 years ago
|
||
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
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•