diff --git a/url.bs b/url.bs index e3360cc4..6579d359 100644 --- a/url.bs +++ b/url.bs @@ -437,8 +437,8 @@ then runs these steps: result of running domain to Unicode on asciiDomain otherwise. -The IPv4 number parser takes a string input and a -writingViolationFlag pointer, and then runs these steps: +
The IPv4 number parser takes a string input and a +validationErrorFlag pointer, and then runs these steps:
Let R be 10.
@@ -448,7 +448,7 @@ The IPv4 number parser takes a string input and a
are either "0x
" or "0X
", run these substeps:
Set writingViolationFlag. +
Set validationErrorFlag.
Remove the first two code points from input. @@ -461,7 +461,7 @@ The IPv4 number parser takes a string input and a
Set writingViolationFlag. +
Set validationErrorFlag.
Remove the first code point from input. @@ -473,7 +473,7 @@ The IPv4 number parser takes a string input and a
If input contains a code point that is not a radix-R digit, then return failure. -
Return the mathematical integer value that is represented by input in @@ -488,7 +488,7 @@ The IPv4 number parser takes a string input and a these steps:
Let writingViolationFlag be unset. +
Let validationErrorFlag be unset.
Let parts be input split on ".
".
@@ -496,7 +496,7 @@ these steps:
If the last item in parts is the empty string, then:
Set writingViolationFlag. +
Set validationErrorFlag.
If parts has more than one item, then remove the last item from parts. @@ -519,14 +519,14 @@ these steps: domain, not an IPv4 address.
Let n be the result of parsing - part using writingViolationFlag. + part using validationErrorFlag.
If n is failure, return input.
Append n to numbers.
If writingViolationFlag is set, validation error. +
If validationErrorFlag is set, validation error.
If any item in numbers is greater than 255, validation error.