Fix host comparison for anchors in IE

In IE, the temporary anchor is discovered to have `port` === "80" by
default,
the `host` subsequently contains ":80" part; the location object has got
`port` === "" by default and port specification is missing from the
`host` value.
So, we cannot compare `host` and have to compare `hostname` and `port`
separately.