- From: Brian Kim <notifications@github.com>
- Date: Thu, 27 Aug 2020 12:53:59 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 27 August 2020 19:54:11 UTC
@annevk I’m currently experimenting with using a custom protocol for the base (currently `local:///`) and it actually seems to be working out. It seems like it’s important to use 1 or 3 slashes so that the constructor does not interpret the first path part as a host. I still need posix path helpers to deal with `pathname`, and I have lots of code I’m not sure about like `url.pathname.startsWith(publicPrefix.pathname)` but this slowly seems to be turning into an acceptable solution. Are there any thoughts on the fake protocol to use? I’m checking against https://en.wikipedia.org/wiki/List_of_URI_schemes to make sure I’m not stepping on well-known protocols. Maybe there is a very good reason not to use `local:///`? I’ve also considered `internal:///`, `self:///`, and `relative:///`? I want some name which indicates that the URL should be relative to the origin assigned to the server. -- 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/531#issuecomment-682158237
Received on Thursday, 27 August 2020 19:54:11 UTC