Opened 13 years ago
Closed 13 years ago
#6749 closed bug (worksforme)
Escape single quote in IE7
Reported by: | xuantl | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.3 | |
Component: | selector | Version: | 1.3.2 |
Keywords: | escape single quote | Cc: | |
Blocked by: | Blocking: |
Description
I have an image: <img src="" alt="Purple' Punch" />
and I try to call: alert($('img [alt="Purple\' Punch"]'));
or alert($("img [alt='Purple\' Punch']"));
This run well in Firefox. In IE7, it causes error "Object doesn't support this property or method".
Note: See
TracTickets for help on using
tickets.
You need to double the backslashes because the first one is "eaten" by Javascript. If you need more help, ask on the forum.