[whatwg/url] remaining variable ambiguity (#308)

> The [EOF code point](https://url.spec.whatwg.org/#eof-code-point) is a conceptual code point that signifies the end of a string or code point stream.
>
> [*remaining*](https://url.spec.whatwg.org/commit-snapshots/fe6b251739e225555f04319f19c70c031a5d99eb/#remaining) references the substring after *pointer* in the string being processed.
>
> …
>
> [File state](https://url.spec.whatwg.org/commit-snapshots/fe6b251739e225555f04319f19c70c031a5d99eb/#file-state): … *remaining* consists of zero code points

My understanding is that this condition in file state really covers two cases:

* when *c* is the last code point of *input*
* when *c* is the EOF code point

Is this understanding correct?

(I know in this case it doesn't really matter, as the case when *c* is the EOF code point will take a different switch-case above, but I just wanted to make sure *remaining* is properly understood and spec'd if necessary.)

-- 
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/308

Received on Thursday, 4 May 2017 04:58:43 UTC