Bug Tracker

Ticket #3990 (closed bug: fixed)

Opened 6 years ago

Last modified 5 years ago

1.3.1 selector bug - $('input[value=""]')

Reported by: redsquare Owned by:
Priority: major Milestone: 1.3.2
Component: selector Version: 1.3.1
Keywords: Cc:
Blocking: Blocked by:


This works in 1.2.6  http://pastebin.me/497d8dc0b9e3a

In 1.3.1  http://jsbin.com/unopa causes an error in firebug.


emptyvalue.patch Download (506 bytes) - added by dz 6 years ago.

Change History

Changed 6 years ago by dz

comment:1 Changed 6 years ago by dz

Attached change to chunker regex in sizzle to handle ""

comment:2 Changed 6 years ago by glavic


<input type="text" value="" /> <input type="text" />


Shouldn't $('form input[value=""]') select both inputs? And not just first one?

comment:3 Changed 6 years ago by dz

Perhaps -- but at the very least, it shoudln't throw a syntax error. [value=""] seems properly formed to me.

comment:4 Changed 6 years ago by glavic

Yes, [value=""] now works in nightly version. But how can I select inputs that have empty values, and inputs that don't have value attribute?

comment:5 Changed 6 years ago by dz

$("input:not([value!=])") should work.

comment:6 Changed 6 years ago by dz

that shoudl be:


comment:7 Changed 6 years ago by thorn

Where can I get the nightly version? Page  http://docs.jquery.com/Downloading_jQuery contains links to outdated nightly build only (Sun, 21 Dec 2008).

comment:8 Changed 5 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed
  • Component changed from unfilled to selector

Fixed in SVN rev [6181].

Note: See TracTickets for help on using tickets.