Open
Bug 497442
Opened 16 years ago
Updated 3 years ago
Setting color attribute of <colorpicker type="button"> does not change color
Categories
(Core :: XUL, defect)
Tracking
()
NEW
People
(Reporter: domenico.lento, Unassigned)
Details
Attachments
(1 file)
|
1.08 KB,
application/vnd.mozilla.xul+xml
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.1b4) Gecko/20090423 Firefox/3.5b4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.1b4) Gecko/20090423 Firefox/3.5b4
there is a problem in initializing the colorpicker type=button element by using javascript
Reproducible: Always
Steps to Reproduce:
1.document.getElementById("colorpicker").setAttribute('color',"#000000");
2.
3.
Actual Results:
the colopicker does not initialize correctly; the result is a totally grey button
Expected Results:
after the excution of the above mentioned code, the colorpicker element has to show a blank (#000000) rectangle inside the grey button
to solve the problem, I use this javascript code:
var cp = document.getElementById("colorpicker");
cp.color = "#000000";
Comment 1•16 years ago
|
||
Confirmed with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1pre) Gecko/20090609 Shiretoko/3.5pre. Seems to only happen if setting the attribute after the element is appended. Testcase coming...
Comment 2•16 years ago
|
||
Expected: All should be red.
Actual: The second box is not red.
Updated•16 years ago
|
Status: UNCONFIRMED → NEW
Component: Extension Compatibility → XUL
Ever confirmed: true
Product: Firefox → Core
QA Contact: extension.compatibility → xptoolkit.widgets
Whiteboard: Setting color attribute of <colorpicker type="button"> does not change color
Version: unspecified → Trunk
Updated•16 years ago
|
Summary: problem in setting the 'color' attribute → Setting color attribute of <colorpicker type="button"> does not change color
Whiteboard: Setting color attribute of <colorpicker type="button"> does not change color
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•