This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://url.spec.whatwg.org/#host-parsing [[ While neither piece pointer nor swaps is zero ]] I believe that piece pointer can not reach zero before swaps, so this could be simplified a bit.
https://github.com/whatwg/url/commit/8dfd861f2dfeb1184ec8a3f34ffa50ba2982f803