Opened 10 years ago

Closed 10 years ago

#8308 closed defect (invalid)

dojo.style(node, 'color') & <select>

Reported by: weber2nd11 Owned by: anonymous
Priority: high Milestone: tbd
Component: Core Version: 1.2.3
Keywords: Cc: Eugene Lazutkin
Blocked By: Blocking:

Description

I didn't see any tickets about this issue; hopefully I'm not beating a dead horse.

In Firefox 2 & Firefox 3 (it doesn't occur in IE6, IE7, Chrome 1.0.154.36, Opera 9.63, or Safari 3.1.2 on Windows XP Pro), when you use dojo.style(nodeReference, "color"); as a getter for <option> tags within a <select> menu, it will return rbg(255, 255, 255) every time, irregardless of what value is actually set on the <option> tag.

See attached .html file for an example.

Attachments (2)

test.html (1.6 KB) - added by weber2nd11 10 years ago.
Small HTML file illustrating the described behavior. Pulls Dojo 1.2.3 from AOL CDN
colorTest.html (1.5 KB) - added by nic 10 years ago.

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by weber2nd11

Attachment: test.html added

Small HTML file illustrating the described behavior. Pulls Dojo 1.2.3 from AOL CDN

comment:1 Changed 10 years ago by Eugene Lazutkin

Cc: Eugene Lazutkin added
Component: GeneralCore

comment:2 Changed 10 years ago by nic

maybe wontfix: on Firefox the selected option *is* black, even if the inline style contains another color.
See the attached html.

Changed 10 years ago by nic

Attachment: colorTest.html added

comment:3 Changed 10 years ago by nic

Pardon.
On Firefox the returned color is the color of the selected option: on my ubuntu box the current theme has white - rgb(255,255,255) - on blue background for selected items (you can see this color when the mouse cursor is over the option); if I change this setting, getComputedStyle (and dojo.style) reflects the theme change.

comment:4 Changed 10 years ago by dante

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.