Re: [whatwg/url] URL.relative proposal (#421)

I guess something like - 

1. If the _scheme_, _host_ and _authentication_ do not match between relURL and baseURL, then
  1. Return relURL.href
1. Let relPath be the path of relURL.pathname relative to baseURL.pathname, including a leading "./" if relURL.pathname is contained in baseURL.pathname.
1. Add relURL.hash to relPath.
1. Return relPath.

-- 
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/421#issuecomment-446224252

Received on Tuesday, 11 December 2018 14:37:34 UTC