Side navigation
#9351 closed bug (worksforme)
Opened May 19, 2011 09:02PM UTC
Closed July 21, 2011 09:06AM UTC
Last modified November 21, 2013 12:58PM UTC
$('img[src$=.png]') error on IE7 and IE8
Reported by: | abodera@gmail.com | Owned by: | abodera@gmail.com |
---|---|---|---|
Priority: | undecided | Milestone: | 1.next |
Component: | selector | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This only happens on IE7 and IE8. Not tested on IE9.
Works ok on safari,chrome, FF4.
'''Object doesn't support this property or method
in jquery-1.6.1.js, line 998 character 15'''
Does NOT occur on jquery-1.4.2.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="/js/jquery/jquery-1.6.1.js"></script> <script type="text/javascript"> //<![CDATA[ $(function(){ $('img[src$=png]'); // this works ok $('img[src$=.png]'); // this will crash }); //]]> </script> </head> <body> <img src="whatever.png" alt="" /> </body> </html>
Attachments (0)
Change History (7)
Changed May 19, 2011 09:07PM UTC by comment:1
Changed May 19, 2011 09:53PM UTC by comment:2
component: | unfiled → selector |
---|---|
owner: | → abodera@gmail.com |
status: | new → pending |
Take a look at the api, there have been some changes made in the last 6 months or so regarding attribute selectors, most notably that jQuery requires quotes around the attribute value of the selector http://api.jquery.com/attribute-equals-selector/
Changed June 03, 2011 08:09AM UTC by comment:3
resolution: | → invalid |
---|---|
status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Changed June 03, 2011 08:13AM UTC by comment:4
Changed July 21, 2011 09:05AM UTC by comment:5
resolution: | invalid |
---|---|
status: | closed → reopened |
Changed July 21, 2011 09:06AM UTC by comment:6
resolution: | → worksforme |
---|---|
status: | reopened → closed |
Updating status to worksforme as quoting appears to work fine here in both general and as per the submitters test case.
Changed November 21, 2013 12:58PM UTC by comment:7
#codeErrormsg img[src$=right.png]
Test under IE7 or IE8:
http://jsfiddle.net/QmE3d/1/