component / url

url parsing utility
47 stars 12 forks source link

Internet Explorer IE < 8 returns relative URL from relative string #1

Closed blakeembrey closed 12 years ago

blakeembrey commented 12 years ago

This is a patch so that the isCrossDomain() function works as expected in IE. It does this by fixing the parse() function with a fallback to window.location. General tidy up of a couple of functions and an update for the tests to use window.location, so they won't fail if someone tries it on another domain/port/etc.

blakeembrey commented 12 years ago

Unfortunately I couldn't get mocha running in my IE7 VM so I wasn't too phased. Just tried a bunch of URLs with alert()'s