Closed Bug 26193 Opened 25 years ago Closed 25 years ago

element.bgColor appears to be failing in M13 for table elements

Categories

(Core :: Layout: Tables, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: ekrock, Assigned: karnaze)

References

()

Details

(Whiteboard: [PDT+])

Using M13 Mozilla 2000012520 on WinNT 4.0 SP4.

View above page in M13.

Expected: Background of nearly every body cell (except for top row/left column) 
is green or red.

Actual: Background of cells is white.

If you view the same page in M12, the cell backgrounds are red/green as 
expected.

If you View Source, you see that the table is dynamically generated using DOM1. 
Cell backgrounds are first set to red (failure) by default by this line: 

currentCell.bgColor = "red";

Later, when tests are passed, cell backgrounds are set to green (success) by by 
this line: 

allTests[id].bgColor = "green";

This bug is probably related to bug #25004, "Document.write used in a TD element 
drops out BGCOLOR/BACKGROUND in cell," but it may or may not be a true DUP as 
document.write is not actually used in this example.

Normally, this bug would not be such an urgent priority. *However*, one of the 
key third-party standards-compliance suites we use most heavily in the Standards 
Challenge document (http://home.netscape.com/browsers/future/standards.html), 
Jeremie.com's DOM test suite, now looks visibly broken in M13 as a result of 
this bug. (You don't see the green or red backgrounds immediately indicating 
success or failure, as expected.) If this bug is not fixed for beta1, we will be 
in the unfortunate position of having one of the standards compliance test 
suites we link to in this key, heavily-promoted marketing document (provided to 
reviewers, analysts, and media) demonstrate a Mozilla bug in such an obvious way 
that even a non-technical person will immediately notice the problem. 

[Note: the Jeremie.com test suite is still *usable* because the return values in 
the cells are still correct. If we can't fix this for M14, we can just make a 
note of the bug on the Standards Challenge document, and it will be embarrassing 
but not fatal.]
Oops, changing component to HTMLTables and reassigning to karnaze. Setting M14 
and marking beta1 keyword.
Assignee: vidur → karnaze
Component: DOM Level 1 → HTMLTables
Keywords: beta1
Summary: element.bgColor appears to be failing in M13 → element.bgColor appears to be failing in M13 for table elements
Target Milestone: M14
Color often used as content. PDT+ for B1
Whiteboard: [PDT+]
This was fixed a week or two ago.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
*** Bug 25004 has been marked as a duplicate of this bug. ***
Verified on 2000-02-24-14-M14 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.