Re: [whatwg/url] Editorial: Restate shorten and use it more (#613)

@TimothyGu commented on this pull request.



> @@ -1861,6 +1859,8 @@ these steps:
    <dt><dfn>relative state</dfn>
    <dd>
     <ol>
+     <li><p>Assert: <var>base</var>'s <a for=url>scheme</a> is not "<code>file</code>".

One can only reach relative state from no scheme state and special relative or authority state.

[No scheme state](https://url.spec.whatwg.org/#no-scheme-state) can only switch to relative state if base’s scheme is not "file" (step 3).

[Special relative or authority state](https://url.spec.whatwg.org/#special-relative-or-authority-state) is only reachable from [scheme state](https://url.spec.whatwg.org/#scheme-state), which rules out "file" scheme in step 2.5 but switches to relative state in step 2.6.

-- 
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/pull/613#pullrequestreview-676847814

Received on Sunday, 6 June 2021 09:55:35 UTC