component / url

url parsing utility
47 stars 12 forks source link

`isCrossDomain()` returns always true in Safari 5.0. #4

Closed nulltask closed 11 years ago

nulltask commented 11 years ago

in Safari 5.0.5

var a = document.createElement('a');
a.href = '/foo/bar';
a.port;  // => "0"

location.port; // => ""