Skip to main content

Bug Tracker

Side navigation

#5545 closed bug (worksforme)

Opened November 24, 2009 11:39AM UTC

Closed June 13, 2010 06:54PM UTC

HTML5 selectors fail in IE6 (but work fine in all other browsers)

Reported by: mathias Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: html5 sizzle selectors ie6 Cc:
Blocked by: Blocking:
Description

HTML5 selectors like $('nav ul li:first-child') don’t seem to work in IE6.

This might be _related_ to bug #5515, but it’s clearly a different, more general issue.

Looks like a Sizzle ‘bug’ (?).

Testcase: http://jsbin.com/ihuxu (uses the HTML5 shiv for obvious reasons)

Attachments (0)
Change History (5)

Changed November 24, 2009 03:10PM UTC by miketaylr comment:1

Just wanted to point out that this isn't working for me in IE7 or IE8 either.

Changed November 24, 2009 08:32PM UTC by mathias comment:2

That’s weird. I tested it this morning in IE6, (IE8 as) IE7 and (IE8 as) IE8 on a WinXP machine; only IE6 failed.

After reading your comment, I checked it again in on my Macbook via Parallels (WinXP SP3), and got it working in IE8 but not in (IE8 as) IE7. More weirdness!

Changed November 25, 2009 07:32AM UTC by mathias comment:3

Maybe this ‘bug’ has something to do with .nodeName case sensitivity: http://ejohn.org/blog/nodename-case-sensitivity/

Changed January 12, 2010 05:24PM UTC by mathias comment:4

Fixed

Here’s a new test case, using jQuery 1.4rc1: http://jsbin.com/alaga

Works in IE6, 7 and 8. Yay!

Changed June 13, 2010 06:54PM UTC by dmethvin comment:5

resolution: → worksforme
status: newclosed

Works in 1.4.