Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"IPv6 serializer" does not define an algorithm for longest sequence of IPv6 pieces that are 0 #321

Closed
GPHemsley opened this issue Jun 3, 2017 · 1 comment
Labels
clarification Standard could be clearer

Comments

@GPHemsley
Copy link
Member

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.

@annevk annevk added clarification Standard could be clearer and removed non-normative labels Apr 26, 2020
@annevk
Copy link
Member

annevk commented May 11, 2020

Per jsdom/whatwg-url#150 it does not seem that tricky, but happy to write that out in prose (after confirming my modifications are indeed correct).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Standard could be clearer
Development

No branches or pull requests

3 participants