Skip to main content

Bug Tracker

Side navigation

#8206 closed bug (wontfix)

Opened February 08, 2011 08:06AM UTC

Closed July 12, 2011 06:20PM UTC

Script:contains('text') fails (returns nothing) in IE8 and IE7

Reported by: heyyeah Owned by:
Priority: high Milestone:
Component: selector Version: 1.5
Keywords: Cc: msie
Blocked by: Blocking:

IE7 and IE8 can't find items using jQuery("script:contains('text')")

JSFiddle example

Result is "Script:contains('flag').length: 2" in Firefox 3.6, Chrome beta 9, Safari 5.03 and 0 in IE. (2 is correct as it the flag is found in the test HTML and javascript). Also errors in previous versions of jQuery.

Attachments (0)
Change History (3)

Changed February 08, 2011 09:48AM UTC by danheberden comment:1

cc: → msie
component: unfiledselector
priority: undecidedlow
status: newopen

IE6, too

Changed July 12, 2011 04:34PM UTC by rwaldron comment:2

priority: lowhigh

Triage confirmed. Further reduction:

Changed July 12, 2011 06:20PM UTC by ajpiano comment:3

resolution: → wontfix
status: openclosed

Thanks for your time and interest in helping out the jQuery project. While we realise this issue is irksome, we cannot advocate or support this type of querying against script tags. As the volume on this ticket indicates (and I can back up with several years of support experience), querying a script by its "text content" is not at all a common or advisable decision.