Url: Expose hasSameOrigin method.
XHR: Adapt to exposed Url.hasSameOrigin() method.
XHR, HTML4: Consistently handle cross-domain errors. Fix typos and references.