Skip to main content

Bug Tracker

Side navigation

#5568 closed bug (fixed)

Opened November 30, 2009 11:14AM UTC

Closed June 19, 2012 05:55AM UTC

Selectors behave differently with comments tags on FF/IE

Reported by: PERECil Owned by: john
Priority: high Milestone: 1.8
Component: selector Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

See test case. Basically, Firefox ignores the comments as a node in the DOM, and IE (all versions tested) seems to count the comments in the DOM.

I don't know if this behavior is intended...

Attachments (1)
  • test.html (0.8 KB) - added by PERECil November 30, 2009 11:15AM UTC.
Change History (5)

Changed November 19, 2010 04:22PM UTC by jitter comment:1

milestone: 1.41.5
priority: majorhigh
status: newopen
version: 1.3.21.4.4

IE returns comment nodes too when getElementsByTagName("*") is used. This is a bug in Sizzle.find

test case alerts 1 in IE 0 in all other browsers

test case 2 shows simple case where this becomes a problem for jQuery

Changed March 31, 2011 04:44AM UTC by danheberden comment:2

milestone: → 1.next

Changed July 11, 2011 08:45PM UTC by dmethvin comment:3

Triaged as valid, need to fix the gEBTN in Sizzle.find as mentioned by jitter.

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

#7276 is a duplicate of this ticket.

Changed June 19, 2012 05:55AM UTC by timmywil comment:5

milestone: 1.next1.8
resolution: → fixed
status: openclosed