Skip to main content

Bug Tracker

Side navigation

#5700 closed bug (duplicate)

Opened December 22, 2009 11:54AM UTC

Closed October 18, 2010 11:49PM UTC

Last modified October 18, 2010 11:49PM UTC

.class:not(:first) does not work as expected in IE8

Reported by: matiasnu Owned by: john
Priority: low Milestone: 1.4
Component: selector Version: 1.3.2
Keywords: css selectors Cc:
Blocked by: Blocking:
Description

$(".elem:not(:first)") will select all divs with class .elem in IE8, but Chrome and Firefox 3.5 will select all except the first div.

$("div.elem:not(:first)") will select all except the first div in IE8, Chrome and Firefox.

Attached testcase.

Attachments (1)
  • ie8bug.html (1.2 KB) - added by matiasnu December 22, 2009 11:54AM UTC.

    Testcase

Change History (4)

Changed January 12, 2010 04:46PM UTC by matiasnu comment:1

I get the same behavior in IE8 when using jQuery 1.4rc1, but I guess this is more of a sizzle bug?

Changed October 08, 2010 01:01AM UTC by addyosmani comment:2

keywords: → css selectors
need: ReviewPatch
priority: majorlow

I've tried your originally submitted test case and it would indeed appear that the selector $(".elem:not(:first)") is not working as expected in IE8.

Live test case here: http://jsfiddle.net/addyosmani/ZndXa/

Flagging for a further review and patch.

Changed October 18, 2010 11:49PM UTC by snover comment:3

resolution: → duplicate
status: newclosed

Changed October 18, 2010 11:49PM UTC by snover comment:4

Duplicate of #6838.