Bug Tracker

Opened 9 years ago

Closed 9 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".

Change History (1)

comment:1 Changed 9 years ago by dmethvin

Resolution: worksforme
Status: newclosed

You need to double the backslashes because the first one is "eaten" by Javascript. If you need more help, ask on the forum.

Note: See TracTickets for help on using tickets.