This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
For HTMLAnchorElement href setter we need to support setting href to an invalid URL. However, for URL objects we should disallow it. Having URL objects that are invalid is bad and hard to detect.
Filed https://bugzilla.mozilla.org/show_bug.cgi?id=926890 on Gecko.
https://github.com/whatwg/url/commit/095d59d3764aca82af397c91f98fc570394c04ea