Permalink
Browse files

Tabs: Restore anchor cloning for remote tab testing. Fixes #9317 - Ta…

…bs: Incorrect remote tab detection in IE7.
  • Loading branch information...
scottgonzalez committed May 22, 2013
1 parent 24756a9 commit daf3f0d9af5b29dc090e15d57cf884e3c12f7cad
Showing with 4 additions and 0 deletions.
  1. +4 −0 ui/jquery.ui.tabs.js
View
@@ -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, "" ) );

0 comments on commit daf3f0d

Please sign in to comment.