Bug Tracker

Opened 14 years ago

Closed 14 years ago

#3990 closed bug (fixed)

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:
Blocked by: Blocking:


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

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

Attachments (1)

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

Download all attachments as: .zip

Change History (9)

Changed 14 years ago by dz

Attachment: emptyvalue.patch added

comment:1 Changed 14 years ago by dz

Attached change to chunker regex in sizzle to handle ""

comment:2 Changed 14 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 14 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 14 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 14 years ago by dz

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

comment:6 Changed 14 years ago by dz

that shoudl be:


comment:7 Changed 14 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 14 years ago by john

Component: unfilledselector
Resolution: fixed
Status: newclosed

Fixed in SVN rev [6181].

Note: See TracTickets for help on using tickets.