Skip to main content

Bug Tracker

Side navigation

#8740 closed bug (duplicate)

Opened April 01, 2011 09:50AM UTC

Closed May 03, 2011 01:55PM UTC

Last modified May 03, 2011 01:55PM UTC

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

Reported by: gabor@nekomancer.net Owned by:
Priority: high Milestone: 1.next
Component: selector Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:
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.

Attachments (0)
Change History (3)

Changed April 01, 2011 02:46PM UTC by timmywil comment:1

component: unfiledselector
priority: undecidedhigh
status: newopen
version: 1.5.11.5.2

Changed May 03, 2011 01:55PM UTC by timmywil comment:2

resolution: → duplicate
status: openclosed

Changed May 03, 2011 01:55PM UTC by timmywil comment:3

Duplicate of #7128.