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

Fix: not compressing trailing zeros in IPv6 #66

Merged
merged 2 commits into from
Jan 12, 2017

Conversation

rmisev
Copy link
Contributor

@rmisev rmisev commented Jan 11, 2017

Fixed bug in function findLongestZeroSequence, which has ignored trailing zeros sequences.

URL to test isssue:
http://[1:0::]

url.host in original version returns [1:0:0:0:0:0:0:0], but must return: [1::]

Fixed bug in function findLongestZeroSequence, which has
ignored trailing zeros sequences
@domenic
Copy link
Member

domenic commented Jan 11, 2017

We need tests... our contribution documentation isn't too helpful there unfortunately.

@Sebmaster
Copy link
Member

Sebmaster commented Jan 11, 2017

Ah right.

@rmisev Can you contribute a test for this to web-platform-tests?

@domenic
Copy link
Member

domenic commented Jan 11, 2017

Alternately our to-upstream directory should work and we can do the upstreaming for you later. Documentation is not great though as I said.

@domenic domenic merged commit 787aa00 into jsdom:master Jan 12, 2017
domenic added a commit to web-platform-tests/wpt that referenced this pull request Jan 12, 2017
domenic added a commit to web-platform-tests/wpt that referenced this pull request Jan 12, 2017
@domenic
Copy link
Member

domenic commented Jan 12, 2017

Thanks so much @rmisev! BTW I didn't realize until now you were the person who helped spot the IPv6 problems in the spec; kudos for that too!

@rmisev rmisev deleted the ipv6-zeros-compress branch September 10, 2017 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants