#3515 new

Empty attribute selector failure in IE7 after prototype 1.7.1 (maybe 1.7)

Reported by Ilya | August 26th, 2013 @ 04:33 PM

When element have empty (boolean) attribute, search by this attribute without required value returns empty list.

< span my_attr>1
< span my_attr='x'>2

prototype 1.6.1:
$$('[my_attr]') -> 1,2

$$('[my_attr=]') -> 1

$$('[my_attr="x"]') -> 2

works in all browser

prototype 1.7.1:
$$('[my_attr]') -> 2

$$('[my_attr=]') -> 1

$$('[my_attr="x"]') -> 2

other browsers
$$('[my_attr]') -> 1,2

$$('[my_attr=]') -> 1

$$('[my_attr="x"]') -> 2

Didn't check IE6 (who cares?)
Similar bug fixed in jQuery: http://bugs.jquery.com/ticket/5637

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket