- From: James Browning <notifications@github.com>
- Date: Fri, 10 Nov 2023 21:07:34 -0800
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 11 November 2023 05:07:39 UTC
> So it's somewhat debatable what the following should return: > Note that we cannot escape . or .. components, so "/foo/%2E%2E/bar" is not an option. The safest thing to do would be just to throw an error and force users to decide what to do. Alternatively there could be an option for some possible builtin behaviours (throw being default, as it by far the safest): ```webidl enum URLFromRelativePathSegmentBehaviour { "throw", "omit", "resolve", } dictionary URLFromOptions { URLFromRelativePathSegmentBehaviour relativePathSegment = "throw"; } ``` -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/url/issues/782#issuecomment-1806690161 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/url/issues/782/1806690161@github.com>
Received on Saturday, 11 November 2023 05:07:39 UTC