We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f59f5a8 commit 1e5662eCopy full SHA for 1e5662e
ui/jquery.ui.tabs.js
@@ -23,12 +23,8 @@ function getNextTabId() {
23
24
function isLocal( anchor ) {
25
return anchor.hash.length > 1 &&
26
- anchor.href.replace( rhash, "" ) ===
27
- location.href.replace( rhash, "" )
28
- // support: Safari 5.1
29
- // Safari 5.1 doesn't encode spaces in window.location
30
- // but it does encode spaces from anchors (#8777)
31
- .replace( /\s/g, "%20" );
+ decodeURIComponent( anchor.href.replace( rhash, "" ) ) ===
+ decodeURIComponent( location.href.replace( rhash, "" ) );
32
}
33
34
$.widget( "ui.tabs", {
0 commit comments