[whatwg/url] Path setter jumps off the leading edge of input (#480)

When the path setter is called, the basic parser is overridden to the *path start state*. But per either 1.3 or 4.2 for that state, the pointer can be decremented:

> If c is neither U+002F (/) nor U+005C (\), then decrease pointer by one.

> If c is not U+002F (/), then decrease pointer by one.

This is ill-defined when the pointer is to the start of the input.

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

Received on Friday, 24 April 2020 23:38:56 UTC