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

Remove redundant domain to Unicode call from valid domain #840

Merged
merged 1 commit into from
Nov 29, 2024
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
13 changes: 3 additions & 10 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -952,20 +952,13 @@ concepts.
<a>valid IPv4-address string</a>, or: U+005B ([), followed by a
<a>valid IPv6-address string</a>, followed by U+005D (]).

<p>A <var>domain</var> is a <dfn>valid domain</dfn> if these steps return success:
<p>A <a for=/>string</a> <var>input</var> is a <dfn>valid domain</dfn> if these steps return true:

<ol>
<li><p>Let <var>result</var> be the result of running <a>domain to ASCII</a> with <var>domain</var>
<li><p>Let <var>domain</var> be the result of running <a>domain to ASCII</a> with <var>input</var>
and true.

<li><p>If <var>result</var> is failure, then return failure.

<li><p>Set <var>result</var> to the result of running <a>domain to Unicode</a> with
<var>result</var> and true.

<li><p>If <var>result</var> contains any errors, return failure.

<li><p>Return success.
<li><p>Return false if <var>domain</var> is failure; otherwise true.
</ol>

<p class=XXX>Ideally we define this in terms of a sequence of code points that make up a
Expand Down