Setting DIV Border Style (Color) via JavaScript Fails

RESOLVED WORKSFORME

Status

()

Firefox
General
RESOLVED WORKSFORME
10 years ago
10 years ago

People

(Reporter: preciseNews, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

Setting border style via JavaScript fails in 3.0.1 

div.style.border = 'solid #FF00033 1 px;'

See example URL above - color should display red border.

Reproducible: Always

Steps to Reproduce:
1.set div border style in javascript
2.see example url
3.
Actual Results:  
div.style.border = 'solid #FF00033 1 px;' does not result in updated border color.

Expected Results:  
color should change

near certain this functioned properly in Firefox 3.0.0, definitely worked in 2.0 and IE
remove the ';' at the end of the string
(Reporter)

Comment 2

10 years ago
swear we'd tried ... but that did it - thanks!
Status: UNCONFIRMED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.