CARVIEW |
Select Language
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Sat, 11 Oct 2025 16:26:54 GMT
Content-Type: text/html
Content-Length: 162
Location: https://bugs.jquery.com/ticket/5568/
Connection: keep-alive
Reporting-Endpoints: csp-endpoint='https://csp-report-api.openjs-foundation.workers.dev/'
Content-Security-Policy: default-src 'self'; script-src 'self' 'wasm-unsafe-eval' code.jquery.com; connect-src 'self'; img-src 'self' secure.gravatar.com; style-src 'self'; media-src 'self' content.jquery.com; report-uri https://csp-report-api.openjs-foundation.workers.dev/; report-to csp-endpoint
HTTP/1.1 200 OK
Server: nginx
Date: Sat, 11 Oct 2025 16:26:54 GMT
Content-Type: text/html
Last-Modified: Wed, 18 Sep 2024 14:30:35 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
ETag: W/"66eae40b-3819"
Reporting-Endpoints: csp-endpoint='https://csp-report-api.openjs-foundation.workers.dev/'
Content-Security-Policy: default-src 'self'; script-src 'self' 'wasm-unsafe-eval' code.jquery.com; connect-src 'self'; img-src 'self' secure.gravatar.com; style-src 'self'; media-src 'self' content.jquery.com; report-uri https://csp-report-api.openjs-foundation.workers.dev/; report-to csp-endpoint
Content-Encoding: gzip
#5568 (Selectors behave differently with comments tags on FF/IE) - jQuery - Bug Tracker
jQuery issues have moved to GitHub. This site is now a static archive of the old Trac bugs site. Some functions and pages are no longer available.
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.4 → 1.5 |
---|---|
priority: | major → high |
status: | new → open |
version: | 1.3.2 → 1.4.4 |
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 19, 2012 05:55AM UTC by timmywil comment:5
milestone: | 1.next → 1.8 |
---|---|
resolution: | → fixed |
status: | open → closed |
IE returns comment nodes too when
getElementsByTagName("*")
is used. This is a bug inSizzle.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