Skip to main content

Bug Tracker

Side navigation

#7276 closed bug (duplicate)

Opened October 21, 2010 10:43PM UTC

Closed June 02, 2012 03:36PM UTC

Last modified June 02, 2012 03:36PM UTC

Inconsistent element selection in IE

Reported by: Keith Clark Owned by:
Priority: high Milestone: 1.next
Component: selector Version: 1.4.3
Keywords: Cc:
Blocked by: Blocking:
Description

These two statements (effectively identical) return different elements in IE:

console.log($(":not(body)").length)

console.log($("*:not(body)").length)

Try it on the jQuery home page in IE's developer tools console.

Attachments (0)
Change History (7)

Changed October 22, 2010 07:13PM UTC by snover comment:1

component: unfiledselector
priority: undecidedhigh
status: newopen

The first form also selects comment nodes.

live test case

Changed March 31, 2011 12:51AM UTC by danheberden comment:2

keywords: → needsreview
milestone: → 1.7

Given how IE sees nodes vs other browsers, I don't think this is something worth addressing.

Changed March 31, 2011 12:53AM UTC by danheberden comment:3

milestone: 1.71.next

Changed April 22, 2011 02:12AM UTC by dmethvin comment:4

The result is consistent in IE9. Seems like a Sizzle issue.

Changed July 12, 2011 04:30PM UTC by rwaldron comment:5

keywords: needsreview

Changed June 02, 2012 03:36PM UTC by dmethvin comment:6

resolution: → duplicate
status: openclosed

Changed June 02, 2012 03:36PM UTC by dmethvin comment:7

Duplicate of #5568.