Skip to content

Commit

Permalink
Merge branch 'master' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
twitwi committed Aug 7, 2012
2 parents 3b5b1be + 4c443b8 commit fce1b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ $.extend(SVGWrapper.prototype, {
var base = url.replace(/\/[^\/]*$/, '/');
$("*[xlink\\:href]", data.documentElement).each( function(i,el) {
var href = $(el).attr('xlink:href')+"";
if (!href.match(/(^[a-z]([-a-z0-9+.])*:.*$)|(^\/.*$)/i)) {
if (!href.match(/(^[a-z]([-a-z0-9+.])*:.*$)|(^\/.*$)/i) && href[0] != '#') {
// only consider relative href
$(el).attr('xlink:href', base + $(el).attr('xlink:href'));
}
Expand Down

0 comments on commit fce1b13

Please sign in to comment.