Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion lib/davis.listener.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down