Closed Bug 120302 Opened 23 years ago Closed 22 years ago

table cell border is not removed when cell.style.border set to ''

Categories

(Core :: DOM: CSS Object Model, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: martin.honnen, Unassigned)

References

Details

Attachments

(1 file)

When I have a table cell (<td> element) and try to remove the border by setting cellReference.style.border = '' the border remains visible. The code works fine in IE6. <html> <head> <title> border settings </title> </head> <body> <table> <tr> <td onmouseover="this.style.border = '1px dashed green'" onmouseout="this.style.border = ''" > Kibology </td> </tr> <tr> <td style="border: 1px solid yellow;" onmouseout="this.style.border = ''" > Kibology </td> </tr></table> </body> </html>
Martin, is there a difference when you use setAttribute("style",....)?
setting cellReference.style.border = 'none' works, though
Happens on Linux too. This looks suspiciously like bug 90960 or bug 103533
OS: Windows XP → All
Hardware: PC → All
Mass-reassigning bugs to dom_bugs@netscape.com
Assignee: jst → dom_bugs
Depends on: 52531
This was fixed by the checkin for bug 125246
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: