[url] protocol setter changing between special and non-special schemes (#104)

In https://url.spec.whatwg.org/#scheme-start-state

> If state override is given, run these subsubsteps:
>
> * If url’s scheme is a special scheme and buffer is not, terminate this algorithm.
> * If url’s scheme is not a special scheme and buffer is, terminate this algorithm.

I think this is a remnant from before b266a43fc9df0e8607074bd4d336a517e2010009 (before URLs with unknown/non-special schemes could be relative) and is now more strict than necessary. I suggest changing it to:

> If state override is given, url’s non-relative flag is set, and buffer is a special scheme, terminate this algorithm.

In other words, the only relevant invariant left to maintain is that an URL can not be both special and non-relative.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/104

Received on Wednesday, 23 March 2016 14:53:29 UTC