#4468 closed bug (duplicate)
:not() Selector not working properly with :first in IE browsers
Reported by: | swalke16 | Owned by: | john |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | selector | Version: | 1.4.4 |
Keywords: | not first | Cc: | |
Blocked by: | Blocking: |
Description
If I have a selector such as the following:
$('.value-container:not(:first)').remove();
This will remove ALL elements that have the value-container class when using an IE browser. When using Firefox this works correctly and removes all but the first element that has the value-container class.
Attachments (1)
Change History (7)
Changed 14 years ago by
Attachment: | NotBug.htm added |
---|
comment:1 follow-up: 3 Changed 13 years ago by
Just found the same issue. $('.value-container').not(':first') seems to be a suitable workaround for both IE and FF.
comment:2 Changed 12 years ago by
Milestone: | 1.3.2 |
---|---|
Priority: | major → low |
Status: | new → open |
Version: | 1.3.2 → 1.4.4 |
http://jsfiddle.net/dmethvin/feMK6/
Confirmed on IE8.
comment:3 Changed 12 years ago by
Replying to mellamokb:
Just found the same issue. $('.value-container').not(':first') seems to be a suitable workaround for both IE and FF.
Thanks - so much - found this doing a google search and it was the perfect answer.
comment:4 Changed 12 years ago by
Milestone: | → 1.next |
---|
Still present on IE6-8. Works as expected on IE9 and other browsers.
A more visual test-case: http://jsfiddle.net/danheberden/ZBX76/
comment:5 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | open → closed |
Simple HTML page that reproduces the described issue.