[OpenLayers-Trac] Re: [OpenLayers] #3478: Missing slash in location.pathname under Internet Explorer 10

OpenLayers trac-20090302 at openlayers.org
Tue Sep 6 06:13:49 EDT 2011


#3478: Missing slash in location.pathname under Internet Explorer 10
---------------------+------------------------------------------------------
  Reporter:  vog     |       Owner:                                     
      Type:  bug     |      Status:  reopened                           
  Priority:  major   |   Milestone:  2.12 Release                       
 Component:  Util    |     Version:  2.11 RC3                           
Resolution:          |    Keywords:  ie10 internet explorer 10 slash url
     State:  Review  |  
---------------------+------------------------------------------------------
Changes (by vog):

  * state:  Needs More Work => Review


Comment:

 I did some further research and finally understood what this is all about.
 There is [http://stackoverflow.com/questions/956233/javascript-pathname-
 ie-quirk a nice summary on StackOverflow] about that issue.

 In short, the existing fix is necessary and sufficient. In Internet
 Explorer ≤ 9, `window.location.pathname` has always a leading slash, but
 `a.pathname` (where `a` is an `<a href>` tag) has no leading slash. So the
 workaround is really only needed for `a.pathname` and not for
 `window.location.pathname`.

 Thus, I'm proposing another patch which doesn't change the code, but adds
 an explaining comment to prevent others from wasting time on that issue.

 Please review.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3478#comment:8>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list