Re: [whatwg/url] Clarify IPv6 serializer (#268)

However you may find whatwg-url's former way of doing things to be simpler (no ignore0 variable):

```js
  for (let i = 0; i < address.length; ++i) {
    if (compressPtr === i) {
      if (i === 0) {
        output += "::";
      } else {
        output += ":";
      }

      i += seqResult.len - 1;
      continue;
    }

    output += address[i].toString(16);
    if (i !== address.length - 1) {
      output += ":";
    }
  }
```

-- 
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/pull/268#issuecomment-286503545

Received on Tuesday, 14 March 2017 17:47:21 UTC