Re: [whatwg/url] Can a URL have a segmented path with zero segments? (Issue #926)

Scripter17 left a comment (whatwg/url#926)

> I think this is tested because you would hit some kind of error when you use `non-special://host` as a base URL and `/foo` as input. And I'm pretty sure we have a test for that. If we don't, we should add one.

I don't understand why that would return an error. Shouldn't that just append `foo` to the empty list? [Live URL Viewer](https://jsdom.github.io/whatwg-url/#url=L2Zvbw==&base=bm9uLXNwZWNpYWw6Ly9ob3N0) says that's the case.

Regardless, if you feel this doesn't warrant an example then I guess this can be closed.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/926#issuecomment-4964540639
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/issues/926/4964540639@github.com>

Received on Tuesday, 14 July 2026 01:33:58 UTC