]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Restore anchor cloning for remote tab testing. Fixes #9317 - Tabs: Incorrect...
authorScott González <scott.gonzalez@gmail.com>
Wed, 22 May 2013 17:59:17 +0000 (13:59 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 26 Nov 2013 15:25:23 +0000 (10:25 -0500)
(cherry picked from commit daf3f0d9af5b29dc090e15d57cf884e3c12f7cad)

ui/jquery.ui.tabs.js

index 992bd41b2c35ab9dd74b8515d400534f776dbe94..4362421db7c6d88fb056b792e72b8f71ceca6d76 100644 (file)
@@ -22,6 +22,10 @@ function getNextTabId() {
 }
 
 function isLocal( anchor ) {
+       // support: IE7
+       // IE7 doesn't normalize the href property when set via script (#9317)
+       anchor = anchor.cloneNode( false );
+
        return anchor.hash.length > 1 &&
                decodeURIComponent( anchor.href.replace( rhash, "" ) ) ===
                        decodeURIComponent( location.href.replace( rhash, "" ) );