Modify ↓
Ticket #8019 (closed bug: invalid)
Fix to relative/absolute path issues with IE 7 or less
| Reported by: | brian.heits@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | selector | Version: | 1.4.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
This is not really a bug but rather a workaround for the bug mentioned in the summary. Instead of using for example $("img[src='img/cal.gif']") which blows up in IE 7 or less, use $("img[src$='img/cal.gif']"). Quick fix that seems to work across all browsers.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Thanks for taking the time to contribute to the jQuery project!
If I didn't understand something wrong, this indeed is a "bug" in IE which can be worked around in the way you describe. But this workaround needs to be applied when appropriate and cannot be included in jQuery core because you can't just rewrite all [src='...'] selectors to [src$='...'] in IE because that might still end up selecting the wrong elements if there are multiple paths with the same ending.
Closing this as invalid as it's not really a bug.