-
Notifications
You must be signed in to change notification settings - Fork 137
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
IPv4 number parser on "0x0a" #167
Comments
Ah and I should mention
|
Swapping steps 3 and 4 fixes the problem. |
Why did you mention the test? |
In any event, created a PR to fix this. Would appreciate your review. |
I mentioned the test because it has an ipv4 number that starts with "0x0" and it doesn't say the result should be failure, i.e. shows that this indeed a bug, assuming the test is correct. |
Pull request looks good to me. |
https://url.spec.whatwg.org/#ipv4-number-parser
I think there's a bug in the spec here.
input="0x0a"
R = 10
input = "0a"
R = 16
we follow this code path
input = "a"
R = 8
return failure
The text was updated successfully, but these errors were encountered: