Ticket #2082 (new bug)

Opened 4 years ago

Last modified 15 months ago

OpenLayers.Util.isEquivalentUrl Gives False Positives in IE6

Reported by: rod Owned by:
Priority: major Milestone: 2.13 Release
Component: Util Version: SVN
Keywords: Cc:
State:

Description

In IE6, the pathname of an anchor element when set by a relative URL is blank. eg...

var a = document.createElement( 'a' ); a.href = '../../file.txt'; alert( a.pathname ); // a.pathname ==

This was being used in OpenLayers.Util.isEquivalentUrl() returning false positives if both URL's were relative. I've attached a path with a new function to create the pathname if it's missing, working around the problem.

Attachments

05-ie6pathname.patch Download (2.5 KB) - added by rod 4 years ago.

Change History

Changed 4 years ago by rod

Changed 15 months ago by erilem

  • type changed from feature to bug
Note: See TracTickets for help on using tickets.