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 310dff1 commit cdccd99Copy full SHA for cdccd99
ui/jquery.ui.tabs.js
@@ -23,7 +23,12 @@ function getNextTabId() {
23
24
function isLocal( anchor ) {
25
return anchor.hash.length > 1 &&
26
- anchor.href.replace( rhash, "" ) === location.href.replace( rhash, "" );
+ 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" );
32
}
33
34
$.widget( "ui.tabs", {
0 commit comments