From 458101eb510c6805b169b889434fec498bdad834 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 18 Nov 2024 14:28:38 +0100 Subject: [PATCH] Editorial: adopt Infra number definitions (and redo IPv6 pieces) --- url.bs | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/url.bs b/url.bs index 44bfb8c..da7ad12 100644 --- a/url.bs +++ b/url.bs @@ -756,14 +756,14 @@ not equivalent and typically treated as distinct.

An IP address is an IPv4 address or an IPv6 address. -

An IPv4 address is a 32-bit unsigned integer that identifies a -network address. +

An IPv4 address is a 32-bit unsigned integer that +identifies a network address. [[RFC791]] -

An IPv6 address is a 128-bit unsigned integer that identifies a -network address. For the purposes of this standard it is represented as a list of eight -16-bit unsigned integers, also known as -IPv6 pieces. +

An IPv6 address is a 128-bit unsigned integer that +identifies a network address. For the purposes of this standard it is defined as of a +list of 8 16-bit unsigned integers, also known as its +pieces. [[RFC4291]]

Support for <zone_id> is @@ -1217,7 +1217,8 @@ these steps. They return failure or a tuple of a number and a boole actually doing that with the editors of this document first.

    -
  1. Let address be a new IPv6 address whose IPv6 pieces are all 0. +

  2. Let address be a new IPv6 address whose pieces + are all 0.

  3. Let pieceIndex be 0. @@ -1445,14 +1446,14 @@ actually doing that with the editors of this document first.

  4. Let output be the empty string.

  5. -

    Let compress be an index to the first IPv6 piece in the first longest - sequences of address's IPv6 pieces that are 0. +

    Let compress be an index to the first item in the first longest sequences of + address's pieces that are 0.

    In 0:f:0:0:f:f:0:0 it would point to the second 0. -

  6. If there is no sequence of address's IPv6 pieces that are 0 that is - longer than 1, then set compress to null. +

  7. If there is no sequence of address's pieces that are 0 + that is longer than 1, then set compress to null.

  8. Let ignore0 be false. @@ -1713,8 +1714,8 @@ It is initially the empty string. -

    A URL's port is either -null or a 16-bit unsigned integer that identifies a networking port. It is initially null. +

    A URL's port is either null or a +16-bit unsigned integer that identifies a networking port. It is initially null.

    A URL's path @@ -1974,8 +1975,8 @@ followed by a path-absolute-URL string.

    A scheme-relative-URL string must be @@ -2577,7 +2578,7 @@ and then runs these steps: by buffer in radix-10 using ASCII digits for digits with values 0 through 9. -

  9. If port is greater than 216 − 1, +

  10. If port is not a 16-bit unsigned integer, port-out-of-range validation error, return failure.

  11. Set url's port to null, if port is