Bug Tracker

Modify

Ticket #3958 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

$('.someclass[initialized!=1]') fails in 1.3; works in 1.2

Reported by: Soulcatcher Owned by:
Priority: major Milestone: 1.3
Component: unfiled Version: 1.3
Keywords: non-existing attribute selection fails Cc:
Blocking: Blocked by:

Description

Say i have several elements with class='someclass' and they DON'T have attribute 'initialized' initially.

When i do $('.someclass[initialized!=1]') in 1.2.6, i get the list of all those elements. In 1.3, i get an empty list. I traced it to line 1986 in jquery 1.3 (Revision 6104) that will return false if given attribute doesn't exist.

So, is it a bug or a 'feature' of 1.3? :) I hope it's a bug cause this is very useful when you want to get all elements that weren't initalized before.

Change History

comment:1 Changed 4 years ago by Soulcatcher

Oops, it seems you fixed it in 1.3.1 :) Thanks!

comment:2 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to fixed

Fixed.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.