#14762 closed defect (fixed)
dojo.query :disabled and :enabled selector doesn't work as expected
Reported by: | moody | Owned by: | Kris Zyp |
---|---|---|---|
Priority: | undecided | Milestone: | 1.7.5 |
Component: | Query | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Browser and OS: IE 8 on Windows XP Professional, IE 9 on Windows 7 Professional
I have the following test html snippet:
<input type="checkbox" value="abc" disabled class="chkNode">Chk1<br> <input type="checkbox" value="abc" disabled class="chkNode">Chk1<br> <input type="checkbox" value="abc" disabled class="chkNode">Chk1<br> <input type="checkbox" value="abc" class="chkNode">Chk1<br> <input type="checkbox" value="abc" checked class="chkNode">Chk1<br>
In IE, both dojo.query(".chkNode:disabled") and dojo.query(".chkNode:enabled") will return all the 5 checkboxes.
While in FF/Chrome it worked well.
Attachments (1)
Change History (7)
Changed 9 years ago by
comment:1 follow-up: 2 Changed 9 years ago by
I wonder if dojo.query(".checkNode[disabled]") or something like that would work?
comment:2 Changed 9 years ago by
Replying to bill:
I wonder if dojo.query(".checkNode[disabled]") or something like that would work?
dojo.query(".checkNode[disabled]") does work, but "checkNode[enabled]" doesn't.
comment:4 Changed 9 years ago by
Milestone: | tbd → 1.8 |
---|
comment:6 Changed 8 years ago by
Milestone: | 1.8 → 1.7.5 |
---|
Note: See
TracTickets for help on using
tickets.
test_file