Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: clarify URL validity #666

Merged
merged 2 commits into from
Dec 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ unified model would be, please file an issue.

<ul>
<li><p>The <a>URL parser</a> takes an arbitrary <a>scalar value string</a> and returns either
failure or a <a for=/>URL</a>.
failure or a <a for=/>URL</a>. It might also record zero or more <a>validation errors</a>.

<li><p>A <a for=/>URL</a> can be seen as the in-memory representation.

Expand All @@ -1211,7 +1211,8 @@ unified model would be, please file an issue.

<li><p>The <a>URL serializer</a> takes a <a for=/>URL</a> and returns an <a>ASCII string</a>. (If
that string is then <a lt="URL parser">parsed</a>, the result will <a for=url>equal</a> the <a
for=/>URL</a> that was <a lt="URL serializer">serialized</a>.)
for=/>URL</a> that was <a lt="URL serializer">serialized</a>.) The output of the
<a>URL serializer</a> is not always a <a>valid URL string</a>.
</ul>

<div class=example id=example-url-parsing>
Expand Down Expand Up @@ -1311,6 +1312,11 @@ unified model would be, please file an issue.
<td>
<td>✅
<td><code>https://example.org//</code>
<tr>
<td><code>https://example.com/[]?[]#[]</code>
<td>
<td>❌
<td><code>https://example.com/[]?[]#[]</code>
</table>

<p>The base and output <a lt="URL record">URL</a> are represented in
Expand Down