From: Scott González Date: Wed, 22 May 2013 17:59:17 +0000 (-0400) Subject: Tabs: Restore anchor cloning for remote tab testing. Fixes #9317 - Tabs: Incorrect... X-Git-Tag: 1.10.4~86 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=39ff5b36e4ed2513f7dc11c22ea4df5d03f9f7b7;p=jquery-ui.git Tabs: Restore anchor cloning for remote tab testing. Fixes #9317 - Tabs: Incorrect remote tab detection in IE7. (cherry picked from commit daf3f0d9af5b29dc090e15d57cf884e3c12f7cad) --- diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 992bd41b2..4362421db 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -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, "" ) );