Bug Tracker

Modify

Ticket #8740 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

Has Attribute Selector fails on empty attributes on ie6/ie7/ff3.0

Reported by: gabor@… Owned by:
Priority: high Milestone: 1.next
Component: selector Version: 1.5.2
Keywords: Cc:
Blocking: Blocked by:

Description

when i have an element with an attribute without a value, the has-attribute-selector in jquery should match that element. it works on newer browsers, but it does not work on internet explorer 6, internet explorer 7 and on firefox 3.0.

example:

<div data-thing="">text</div>
<script>alert($('div[data-thing]').length);</script>

(also on jsfiddle:  http://jsfiddle.net/pNjwe/2/)

it shows 1 on newer browsers, and 0 on the mentioned browsers.

Change History

comment:1 Changed 2 years ago by timmywil

  • Priority changed from undecided to high
  • Status changed from new to open
  • Version changed from 1.5.1 to 1.5.2
  • Component changed from unfiled to selector

comment:2 Changed 2 years ago by timmywil

  • Status changed from open to closed
  • Resolution set to duplicate

comment:3 Changed 2 years ago by timmywil

Duplicate of #7128.

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.