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.11.0-beta.1~322 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=daf3f0d9af5b29dc090e15d57cf884e3c12f7cad;p=jquery-ui.git Tabs: Restore anchor cloning for remote tab testing. Fixes #9317 - Tabs: Incorrect remote tab detection in IE7. --- 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, "" ) );