Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#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)

test.html (922 bytes) - added by moody 8 years ago.
test_file

Download all attachments as: .zip

Change History (7)

Changed 8 years ago by moody

Attachment: test.html added

test_file

comment:1 Changed 7 years ago by bill

I wonder if dojo.query(".checkNode[disabled]") or something like that would work?

comment:2 in reply to:  1 Changed 7 years ago by moody

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:3 Changed 7 years ago by Kris Zyp

Resolution: fixed
Status: newclosed

In [29042]:

Fix :disabled and :enabled selectors, fixes #14762 !strict

comment:4 Changed 7 years ago by bill

Milestone: tbd1.8

comment:5 Changed 7 years ago by Colin Snover

In [30034]:

Fix :disabled and :enabled selectors, fixes #14762 !strict Backport to 1.7

comment:6 Changed 7 years ago by Colin Snover

Milestone: 1.81.7.5
Note: See TracTickets for help on using tickets.