Bug Tracker

Opened 7 years ago

Closed 5 years ago

Last modified 5 years ago

#7276 closed bug (duplicate)

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.

Change History (7)

comment:1 Changed 7 years ago by snover

Component: unfiledselector
Priority: undecidedhigh
Status: newopen

The first form also selects comment nodes.

live test case

comment:2 Changed 7 years ago by danheberden

Keywords: needsreview added
Milestone: 1.7

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

comment:3 Changed 7 years ago by danheberden

Milestone: 1.71.next

comment:4 Changed 6 years ago by dmethvin

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

comment:5 Changed 6 years ago by Rick Waldron

Keywords: needsreview removed

comment:6 Changed 5 years ago by dmethvin

Resolution: duplicate
Status: openclosed

comment:7 Changed 5 years ago by dmethvin

Duplicate of #5568.

Note: See TracTickets for help on using tickets.