Side navigation
#6749 closed bug (worksforme)
Opened July 01, 2010 03:19AM UTC
Closed July 02, 2010 02:43AM UTC
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".
Attachments (0)
Change History (1)
Changed July 02, 2010 02:43AM UTC by comment:1
resolution: | → worksforme |
---|---|
status: | new → closed |
You need to double the backslashes because the first one is "eaten" by Javascript. If you need more help, ask on the forum.