Bug Tracker

Modify

Ticket #8019 (closed bug: invalid)

Opened 2 years ago

Last modified 15 months ago

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

comment:1 Changed 2 years ago by jitter

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to selector

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.