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: | 1.next |
Component: | selector | Version: | 1.5 |
Keywords: | Cc: | msie | |
Blocked by: | Blocking: |
Description
IE7 and IE8 can't find items using jQuery("script:contains('text')")
JSFiddle example
http://jsfiddle.net/heyyeah/rxCPx/4/
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 comment:1
cc: | → msie |
---|---|
component: | unfiled → selector |
priority: | undecided → low |
status: | new → open |
Changed July 12, 2011 04:34PM UTC by comment:2
priority: | low → high |
---|
Triage confirmed. Further reduction: http://jsfiddle.net/rwaldron/bvT8W/
Changed July 12, 2011 06:20PM UTC by comment:3
resolution: | → wontfix |
---|---|
status: | open → closed |
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.
IE6, too