Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#8019 closed bug (invalid)

Fix to relative/absolute path issues with IE 7 or less

Reported by: [email protected] Owned by:
Priority: low Milestone: 1.next
Component: selector Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

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 (1)

comment:1 Changed 11 years ago by jitter

Component: unfiledselector
Priority: undecidedlow
Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.