Skip to content

Commit daf3f0d

Browse files
committed
Tabs: Restore anchor cloning for remote tab testing. Fixes #9317 - Tabs: Incorrect remote tab detection in IE7.
1 parent 24756a9 commit daf3f0d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ui/jquery.ui.tabs.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ function getNextTabId() {
2222
}
2323

2424
function isLocal( anchor ) {
25+
// support: IE7
26+
// IE7 doesn't normalize the href property when set via script (#9317)
27+
anchor = anchor.cloneNode( false );
28+
2529
return anchor.hash.length > 1 &&
2630
decodeURIComponent( anchor.href.replace( rhash, "" ) ) ===
2731
decodeURIComponent( location.href.replace( rhash, "" ) );

0 commit comments

Comments
 (0)