Skip to content

Commit

Permalink
Fixing Issue #48 - IE9 reports img.href instead of img.src
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneyrehm committed Oct 11, 2012
1 parent 08a82a7 commit 327835b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/jquery.URI.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ function escapeRegEx(string) {

function getUriProperty(elem) {
var property;

$.each(['href', 'src', 'action'], function(k, v) {
if (v in elem) {

// Note: IE9 will report img.href, so check img.src first (Issue #48)
$.each(['src', 'href', 'action'], function(k, v) {
if (v in elem ) {
property = v;
return false;
}
Expand Down

0 comments on commit 327835b

Please sign in to comment.