quirkey/sammy — pull request #183 by teelahti (2013-01-28 11:55:18+00:00)
Title: Get hostname in a cross-browser compatible way

Internet Explorer looses A.hostname property when href is set
dynamically with .setAttribute('href', '/whatever'). This is a problem
with client side templating engines like knockout.js. E.g. this link
created with templating would not work correctly in sammy.js, as it does
not have hostname.

The issue is fixed by checking hostname, and if it is missing, create a
new link and query the hostname from that link.