Skip to content

Commit

Permalink
A few fixes
Browse files Browse the repository at this point in the history
Adds error description and example for
unexpected-windows-drive-letter-host as suggested by @rmisev.

Fixes an error description that I missed that began with
"This error occurs when..."

Changes an example to use > instead of ">"
  • Loading branch information
TRowbotham committed May 15, 2020
1 parent b22d189 commit 85af057
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,16 @@ valid input. User agents, especially conformance checkers, are encouraged to rep
<td>
<tr>
<td><dfn>unexpected-windows-drive-letter</dfn>
<td><p>This error occurs when a <a>relative-URL string</a>
<a>starts with a Windows drive letter</a> and the <a>base URL</a>'s <a>scheme</a> is
"<code>file</code>".
<td><p>The input is a <a>relative-URL string</a> that <a>starts with a Windows drive letter</a>
and the <a>base URL</a>'s <a>scheme</a> is "<code>file</code>".
<div class=example id=example-unexpected-windows-drive-letter><pre><code class=lang-javascript>
let url = new URL("/c:/path/to/file", "file:///c:/");
</code></pre>
<td>
<tr>
<td><dfn>unexpected-windows-drive-letter-host</dfn>
<td>???
<td><p>The file URL's host is a windows drive letter.
<p class=example id=example-unexpected-windows-drive-letter-host>"file://c:"
<td>
<tr>
<td><dfn>unexpected-host-file-scheme</dfn>
Expand All @@ -231,7 +231,7 @@ valid input. User agents, especially conformance checkers, are encouraged to rep
<td><dfn>invalid-URL-code-point</dfn>
<td><p>A code point that is not a <a>URL code point</a> or U+0025 (%) is found in the URL's
<a>path</a>, <a>query</a>, or <a for=url>fragment</a>.
<p class=example id=example-invalid-URL-code-point>"https://example.org/>"
<p class=example id=example-invalid-URL-code-point>"https://example.org/&gt;"
<td>
<tr>
<td><dfn>unescaped-percent-sign</dfn>
Expand Down

0 comments on commit 85af057

Please sign in to comment.