Re: [whatwg/url] "append the empty string to url’s path." is confusing (#295)

> If buffer is a double-dot path segment, shorten url’s path, and then if neither c is U+002F (/), nor url is special and c is U+005C (\), append the empty string to url’s path.

This whole line is confusing to me.

There's a combination of inline conditionals and inline actions, and it's really not clear what happens when.

Is there a reason this can't be broken out into a full list with clear actions and conditionals?

-- 
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/295#issuecomment-305573677

Received on Thursday, 1 June 2017 18:07:39 UTC