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

This commit is contained in:
Scott González 2013-05-22 13:59:17 -04:00
parent 24756a978a
commit daf3f0d9af

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, "" ) );