Skip to main content

Bug Tracker

Side navigation

#3933 closed bug (duplicate)

Opened January 21, 2009 07:46AM UTC

Closed February 08, 2009 07:08PM UTC

Empty attribute selectors

Reported by: kyleaa Owned by: john
Priority: major Milestone: 1.3.1
Component: selector Version: 1.3
Keywords: Cc:
Blocked by: Blocking:

$("[value=]") or $("[value='']") returns unfilled form elements in 1.2.6, in 1.3 it returns nothing.

Attachments (1)
  • Picture 1.png (59.5 KB) - added by kyleaa January 28, 2009 08:38PM UTC.
Change History (4)

Changed January 22, 2009 07:08AM UTC by mannkind comment:1

I'm experiencing the same thing with jQuery 1.3.1

In 1.2.6 I can select all <a> elements without the onclick attribute via:


In 1.3.1 the same expression throws an error. Removing the pair of double quotes returns nothing.

Changed January 28, 2009 08:13PM UTC by ricardobeat comment:2

$("[value=]") works in 1.2.6, 1.3 and 1.3.1 as this test case shows:

But $('[value=""]') seems to have stopped working in 1.3.1, returns nothing.

Changed January 28, 2009 08:37PM UTC by kyleaa comment:3

Using the test case in Safari 3.2.1, the selector finds the field without the value attribute, but the not the one with the empty value.

Changed February 08, 2009 07:08PM UTC by dmethvin comment:4

resolution: → duplicate
status: newclosed

Dup of #3990 and fixed at [6181].