Open
Bug 715456
Opened 13 years ago
Updated 2 years ago
checkboxes with "readonly" attribute are greyed out
Categories
(Core :: Layout: Form Controls, defect)
Core
Layout: Form Controls
Tracking
()
NEW
People
(Reporter: robrwo, Unassigned)
References
Details
Attachments
(1 file)
7.81 KB,
patch
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20100101 Firefox/9.0 Iceweasel/9.0 Build ID: 20111220194651 Steps to reproduce: Specified a checkbox as <input id="role_id0" type="checkbox" checked="checked" readonly="readonly" value="0" name="role" /> Actual results: Checkbox displayed as greyed out (presumably readonly), but it can still be unchecked when one clicks on it. Expected results: Checkbox should not alow one to change state.
Comment 1•13 years ago
|
||
Seems to me that the spec says we should ignore readonly on checkboxes.
Component: Untriaged → Layout: Form Controls
Product: Firefox → Core
QA Contact: untriaged → layout.form-controls
Updated•13 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Comment 3•13 years ago
|
||
I think the fact that the checkbox is greyed out is a bug, though.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: DUPLICATE → ---
Summary: Readonly checkboxes are not readonly → checkboxes with "readonly" attribute are greyed out
Comment 4•13 years ago
|
||
(In reply to Ms2ger from comment #3) > I think the fact that the checkbox is greyed out is a bug, though. Indeed.
OS: Linux → All
Hardware: x86_64 → All
Version: 9 Branch → Trunk
Comment 5•13 years ago
|
||
So I have a patch that should fix that but it's assuming <input type='checkbox'> has :read-write applying instead of :read-only. I'm going to attach it here but I will wait to see how bug 715484 evolves before requesting a review.
Depends on: 715484
Comment 6•13 years ago
|
||
I could probably add a test for disabled states too.
Assignee: nobody → mounir
Status: REOPENED → ASSIGNED
Comment 7•2 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.
Assignee: mounir → nobody
Status: ASSIGNED → NEW
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•