Closed Bug 280759 Opened 20 years ago Closed 20 years ago

Javascript-set background of <td id=xxx> by "style.background" not possible

Categories

(SeaMonkey :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: thomas.finkl, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.5) Gecko/20041217
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.5) Gecko/20041217

The background color of a table cell can't be set by javascript. 
The table cell is identified by id.
In IE the colors are set but not in Mozilla or Firefox.


Reproducible: Always

Steps to Reproduce:
1.create HTML Page with table and the following cell
<td valign='middle' id="ab" class='anwesend_days'></td>
2. Change color with JavaSript
elm = document.getElementById('ab');
elm.style.background = 'ddddff';

3.

Actual Results:  
No colors are set

Expected Results:  
Set colors
Missing '#', try elm.style.background = '#ddf';
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: