Tabs: Restore anchor cloning for remote tab testing. Fixes #9317 - Tabs: Incorrect remote tab detection in IE7.

(cherry picked from commit daf3f0d9af)
This commit is contained in:
Scott González 2013-05-22 13:59:17 -04:00
parent c241313f1d
commit 39ff5b36e4

View File

@ -22,6 +22,10 @@ function getNextTabId() {
} }
function isLocal( anchor ) { 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 && return anchor.hash.length > 1 &&
decodeURIComponent( anchor.href.replace( rhash, "" ) ) === decodeURIComponent( anchor.href.replace( rhash, "" ) ) ===
decodeURIComponent( location.href.replace( rhash, "" ) ); decodeURIComponent( location.href.replace( rhash, "" ) );