Bug Tracker

Opened 11 years ago

Closed 11 years ago

#3933 closed bug (duplicate)

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:

Description

$("[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 11 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 in reply to:  description Changed 11 years ago by mannkind

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:

jQuery('a[onclick=""]')

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

comment:2 Changed 11 years ago by ricardobeat

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

http://jquery.nodnod.net/cases/77

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

comment:3 Changed 11 years ago by kyleaa

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 11 years ago by kyleaa

Attachment: Picture 1.png added

comment:4 Changed 11 years ago by dmethvin

Resolution: duplicate
Status: newclosed

Dup of #3990 and fixed at [6181].

Note: See TracTickets for help on using tickets.