Skip to main content

Bug Tracker

Side navigation

#11378 closed bug (invalid)

Opened February 23, 2012 01:02PM UTC

Closed February 23, 2012 01:09PM UTC

Disabled link not reported as ":disabled"

Reported by: Motty Owned by:
Priority: low Milestone: None
Component: selector Version: git
Keywords: Cc:
Blocked by: Blocking:

When using the ":disabled" selector on a disabled link, it is reported as not disabled. It doesn't seem to matter what the disabled attribute returns. Using the selector on other elements reports as expected

$('a').is(':disabled') // always false

The ":disabled" selector was reporting correctly in jQuery v1.2.6 and 1.3.2 but not in any of the newer versions.

Attachments (0)
Change History (1)

Changed February 23, 2012 01:09PM UTC by sindresorhus comment:1

component: unfiledselector
priority: undecidedlow
resolution: → invalid
status: newclosed

The "a" tag doesn't have the "disabled" attribute, which is why it isn't working.

Tried the jsfiddle testcase with jQuery 1.2.6 and it didn't work either.