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 comment:1
component: | unfiled → selector |
---|---|
priority: | undecided → high |
status: | new → open |
Changed March 31, 2011 12:51AM UTC by 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 comment:3
milestone: | 1.7 → 1.next |
---|
Changed April 22, 2011 02:12AM UTC by comment:4
The result is consistent in IE9. Seems like a Sizzle issue.
Changed July 12, 2011 04:30PM UTC by comment:5
keywords: | needsreview |
---|
Triage confirmed. Further reduction: http://jsfiddle.net/rwaldron/56K3B/
Screenshot IE6:
Changed June 02, 2012 03:36PM UTC by comment:6
resolution: | → duplicate |
---|---|
status: | open → closed |
The first form also selects comment nodes.
live test case