diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-05-22 13:59:17 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-05-22 13:59:33 -0400 |
commit | daf3f0d9af5b29dc090e15d57cf884e3c12f7cad (patch) | |
tree | 6df7f4564d92bb52b30fc5eb91f3cc083c233156 /ui | |
parent | 24756a978a977d7abbef5e5bce403837a01d964f (diff) | |
download | jquery-ui-daf3f0d9af5b29dc090e15d57cf884e3c12f7cad.tar.gz jquery-ui-daf3f0d9af5b29dc090e15d57cf884e3c12f7cad.zip |
Tabs: Restore anchor cloning for remote tab testing. Fixes #9317 - Tabs: Incorrect remote tab detection in IE7.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.tabs.js | 4 |
1 files changed, 4 insertions, 0 deletions
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, "" ) ); |