olivernn/davis.js — Issue #25: originChecks of Davis.listener don't work correctly in IE8
Author: jacobcoens
Created: 2011-12-07 12:41:04+00:00
State: open

As the originCheck checks against the host property of the hyperlink, (in some cases) the port number is included whereas it is not included in the host property of window.location.

I've fixed this by using the hostname property of the hyperlink in stead of the host property.

Also, I think the protocols should match so that linking to and from the https-secured site will result in a page refresh.

This would result in the following for line 220 of davis.js
return elem.hostname !== window.location.host || elem.protocol !== window.location.protocol