[whatwg/url] relative state ambiguity (#294)

In `relative state`, the pointer is specified to decrement, and only change state on:

- EOL

- U+002F (/)

- U+003F (?)

- U+0023 (#)

The specification should delineate that the path (/), query (?) and fragment (#) operators are only available _at the end_ of a valid URL.

For the implementation of the `relative state`, a url such as: 

`scheme://root:pass#word@example.com`

Would result in undefined behavior, that would have to be handled, as the octothorp should not move the parser into the fragment state.

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

Received on Wednesday, 19 April 2017 02:29:01 UTC