Search and Top Navigation
#10296 closed bug (wontfix)
Opened July 21, 2014 08:44AM UTC
Closed July 21, 2014 02:23PM UTC
jquery tabs "isLocal" returns not correct
Reported by: | momofiona | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.tabs | Version: | 1.10.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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 &&
decodeURIComponent( anchor.href.replace( rhash, "" ) ) ===
decodeURIComponent( location.href.replace( rhash, "" ) );
}
<a href="#fakepanel">
should return true,but in IE7,it return false:
>> anchor.href
"http://127.0.0.1:8080/main/workbench/index.html#fakepanel"
>>anchor.cloneNode(false).href
"http://127.0.0.1:8080/main/index.html#fakepanel"
becauseof cloneNode bug in IE7
a.html
b/b.html
the result should be 'http://xxxxxx/b/b.html#' ,'http://xxxxxx/b/b.html#' the same;
but in IE7 it's 'http://xxxxxx/b/b.html#' ,'http://xxxxxx/a.html#' the different;