-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 test case for exception rule #1998
Fix test case for exception rule #1998
Conversation
At least in Firefox it behaves as I would expect:
if anybody knows how to easily test in other browsers please let me know! |
Note, this code expects the public suffix:
while the discussion here rockdaboot/libpsl#48 (comment) indicates that this function may in the past have returned the shortest registrable part. So maybe it was improperly converted at some point? |
I think the existing test case is correct and should not be altered. The algorithm described in the wiki should be corrected to match the test case. As I commented in |
Could you elaborate a bit? I don't understand how something that has an explicit exception rule could possibly be an expectedSuffix. |
the checkPublicSuffix() example indicates that the longest public suffix +1 label on top is |
Oh, the naming here is just confusing |
As pointed out in #1989 there seems to be a bug in a test case where something that has an explicit exception is returned as a public suffix. This fixes that test case.