Skip to main content

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"

Attachments (0)
Change History (2)

Changed July 21, 2014 10:11AM UTC by momofiona comment:1

becauseof cloneNode bug in IE7

a.html

<doctype html> <html> <body> <iframe src="b/b.html"></iframe> </body> </html>

b/b.html

<doctype html> <html> <body> <a href="#">#</a> <script>alert(document.links[0].href);alert(document.links[0].cloneNode().href);</script> </body> </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;

Changed July 21, 2014 02:23PM UTC by scottgonzalez comment:2

resolution: → wontfix
status: newclosed

We no longer support IE7. We've left the workaround in place for 1.11.x, but they will not be touched. They will be removed in 1.12.x.