Skip to content

Commit

Permalink
Tabs: Restore anchor cloning for remote tab testing. Fixes #9317 - Ta…
Browse files Browse the repository at this point in the history
…bs: Incorrect remote tab detection in IE7.

(cherry picked from commit daf3f0d)
  • Loading branch information
scottgonzalez committed Nov 26, 2013
1 parent c241313 commit 39ff5b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/jquery.ui.tabs.js
Expand Up @@ -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, "" ) );
Expand Down

0 comments on commit 39ff5b3

Please sign in to comment.