3 ms·
Doesn't appear it's only Chrome that gets it "wrong," as it is _only_ IE that gets it "right." https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorEleme
by thezilch 13y ago
Doesn't appear it's only Chrome that gets it "wrong," as it is _only_ IE that gets it "right."
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorE... writes:
URLUtils.host
Is a DOMString representing the hostname and port
(if it's not the default port) in the referenced URL.
But it implements https://developer.mozilla.org/en-US/docs/Web/API/URLUtils https://developer.mozilla.org/en-US/docs/Web/API/URLUtils (experimental), which writes:
URLUtils.host
Is a DOMString containing the host, that is the hostname,
a ':', and the port of the URL.
- jessepollak 13y agoAh, so IE must implement the experimental version while no one else does?
- bzbarsky 13y agoNo, the documentation just doesn't match the spec.