Open Bug 715456 Opened 13 years ago Updated 2 years ago

checkboxes with "readonly" attribute are greyed out

Categories

(Core :: Layout: Form Controls, defect)

defect

Tracking

()

People

(Reporter: robrwo, Unassigned)

References

Details

Attachments

(1 file)

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.
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
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
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
(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
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
Attached patch WIP PatchSplinter Review
I could probably add a test for disabled states too.
Assignee: nobody → mounir
Status: REOPENED → ASSIGNED

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
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: