[whatwg/url] "IPv6 serializer" does not define an algorithm for longest sequence of IPv6 pieces that are 0 (#321)

Similar to #318, the "IPv6 serializer" requires determining the longest sequence of 0s for IPv6 compression without specifying an algorithm for doing that:

> Let compress be an index to the first IPv6 piece in the first longest sequences of address’s IPv6 pieces that are 0.
> Example: In 0:f:0:0:f:f:0:0 it would point to the second 0.
> If there is no sequence of address’s IPv6 pieces that are 0 that is longer than 1, then set compress to null.

It would be better for implementors if the procedure for doing so were made explicit, as this is another seemingly non-trivial task.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/321

Received on Saturday, 3 June 2017 19:04:46 UTC