Closed Bug 124492 Opened 23 years ago Closed 23 years ago

Table style background color cannot be changed via javascript

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 91443

People

(Reporter: jroller, Assigned: dbaron)

Details

Attachments

(1 file)

Using javascript getElementbyID(elem_id).style.backgroundcolor= when elem_id is a <table> element only works once. Other element types <div>, <tr>, etc, seem to be able to change colors multiple times just fine. When the element is viewed in the DOM inspector, it will show that background-color has been set, but the browser only displays the first color that it was set to.
Attached file Color changing demo
Test case allowing you to click and change background color of various elements. Table will change colors only once. (TR doesn't change colors after TD background has been set, but that actually makes sense)
Style system. This is yet another "dynamic style changes on tables don't work" bug (pierre already has a few).
Assignee: jst → dbaron
Component: DOM Style → Style System
dup *** This bug has been marked as a duplicate of 91443 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: