diff --git a/url.bs b/url.bs index 2f475eb..c51d9c0 100644 --- a/url.bs +++ b/url.bs @@ -952,20 +952,13 @@ concepts. valid IPv4-address string, or: U+005B ([), followed by a valid IPv6-address string, followed by U+005D (]). -
A domain is a valid domain if these steps return success: +
A string input is a valid domain if these steps return true:
Let result be the result of running domain to ASCII with domain +
Let domain be the result of running domain to ASCII with input and true. -
If result is failure, then return failure. - -
Set result to the result of running domain to Unicode with - result and true. - -
If result contains any errors, return failure. - -
Return success. +
Return false if domain is failure; otherwise true.
Ideally we define this in terms of a sequence of code points that make up a