diff --git a/lib/davis.listener.js b/lib/davis.listener.js index a075bbc..72041e5 100644 --- a/lib/davis.listener.js +++ b/lib/davis.listener.js @@ -29,7 +29,14 @@ Davis.listener = function () { FORM: function (elem) { var a = document.createElement('a') a.href = elem.action - return this.A(a) + + // a.host needs to be checked this convoluted way because of IE10, which sticks the port on + // the end of a.host as created above. + f = document.createElement("form") + f.action = window.location.href + a2 = document.createElement("a") + a2.href = f.action + return a.host !== a2.host || a.protocol !== a2.protocol } }