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

All your mentioned cases are the access of _c_ when _pointer_ is out-of-bounds. The behaviour is described for lists here: https://infra.spec.whatwg.org/#list

> An indexing syntax can be used by providing a zero-based index into a list inside square brackets. The index cannot be out-of-bounds, except when used with exists.

I think the same must be defined for strings with only **EOF code point** exception (when _pointer_ = string._length_). So any attempt to access _c_ then _pointer_ is out-of-bounds (_pointer_ < 0 or _pointer_ > string._length_), must be considered a bug.

-- 
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#issuecomment-306027739

Received on Sunday, 4 June 2017 09:02:02 UTC