page.js icon indicating copy to clipboard operation
page.js copied to clipboard

el.pathname not returning leading '/' in IE 10 & 11

Open jjog1 opened this issue 11 years ago • 1 comments

We're passing a '/' in as the base. In our element we have a href similar to test/123. In Chrome and Firefox el.pathname returns /test/123. However, in IE it is returning test/123.

So in IE when the Context is being created it removes the middle '/'. e.g. test/123 becomes test123.

I'm going to start working on a pull request now.

jjog1 avatar May 20 '15 14:05 jjog1

Managed to find a work around instead. We don't set page.base when we're using IE and then it acts as we expect.

jjog1 avatar May 21 '15 14:05 jjog1