Skip to main content

Bug Tracker

Side navigation

#368 closed bug (wontfix)

Opened November 08, 2006 04:44PM UTC

Closed November 15, 2006 04:09PM UTC

Last modified June 20, 2007 03:10AM UTC

attribute selector not working in IE6 in jQuery 1.0.3

Reported by: tdeater@biggs-gilmor Owned by:
Priority: major Milestone:
Component: core Version:
Keywords: Cc:
Blocked by: Blocking:
Description

Using this selector to find null links in my #nav container:

$("#nav a[@href='#']")

This works fine for all tested browsers using the 2006-08-31 (rev 249) release of jQuery.

In the 1.0.3 release however, IE selects zero elements. Firefox 1.5 works correctly still.

Attachments (0)
Change History (1)

Changed November 15, 2006 04:09PM UTC by brandon comment:1

resolution: → wontfix
status: newclosed

This is caused by IE messing with the attribute value when using getAttribute on the a tag's href attribute. Instead please use:

$("#nav a[@href$='#'");

See http://jquery.com/docs/Base/Expression/CSS/ for more info on this selector.