- From: Anne van Kesteren <notifications@github.com>
- Date: Tue, 24 Jan 2023 09:02:59 -0800
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 24 January 2023 17:03:11 UTC
@annevk commented on this pull request.
> + <div class=example id=example-missing-scheme-non-relative-url>
+ <p>Input's <a for=url>scheme</a> is missing and no <a>base URL</a> is given:
+ <pre><code class=lang-javascript>
+let url = new URL("💩");</code></pre>
+ <p>Input's <a for=url>scheme</a> is missing, but the <a>base URL</a> has an
+ <a for=url>opaque path</a>.
+ <pre><code class=lang-javascript>
+let url = new URL("💩", "mailto:user@example.org");</code></pre>
+ </div>
+ <td>✅
+ <tr>
+ <td><dfn>relative-URL-missing-beginning-solidus</dfn>
+ <td>
+ <p>The input is a <a>relative-URL String</a> that does not begin with U+002F (/).
+ <pre class=example id=example-relative-url-missing-beginning-solidus><code class="lang-javascript">
+let url = new URL("foo.html", "https://example.org/");</code></pre>
Good point. I think this would only be hit by `new URL("https:foo.html", "https://example.com/")`, but that clearly requires a better name.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/502#discussion_r1085625416
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/url/pull/502/review/1267899985@github.com>
Received on Tuesday, 24 January 2023 17:03:11 UTC