Skip to content

Commit da212c9

Browse files
committed
Remove redundant domain to Unicode call from valid domain
I'm not entirely sure why this redundant check existed. Either because there was a difference back when this definition was introduced in 3bec3b8 or (more likely) I wasn't sure if there was a difference. Fixes #817.
1 parent 7ff8de0 commit da212c9

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

url.bs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -952,20 +952,13 @@ concepts.
952952
<a>valid IPv4-address string</a>, or: U+005B ([), followed by a
953953
<a>valid IPv6-address string</a>, followed by U+005D (]).
954954

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

957957
<ol>
958-
<li><p>Let <var>result</var> be the result of running <a>domain to ASCII</a> with <var>domain</var>
958+
<li><p>Let <var>domain</var> be the result of running <a>domain to ASCII</a> with <var>input</var>
959959
and true.
960960

961-
<li><p>If <var>result</var> is failure, then return failure.
962-
963-
<li><p>Set <var>result</var> to the result of running <a>domain to Unicode</a> with
964-
<var>result</var> and true.
965-
966-
<li><p>If <var>result</var> contains any errors, return failure.
967-
968-
<li><p>Return success.
961+
<li><p>Return false if <var>domain</var> is failure; otherwise true.
969962
</ol>
970963

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

0 commit comments

Comments
 (0)