-
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
Some well formed base domains fail to check #91
Comments
That sounds like a bug with libpsl, not with the list; it's unclear what you see the issue as. |
I got the same results with tldjs: https://jsfiddle.net/d0xe4ybk/1/ and also with x/net/publicsuffix Golang package. |
That doesn't really address my point; what you just said sounds like bugs in their implementation. The test cases provided are consistent with the algorithm definition; if you're getting bad results, it's worth diving into the implementations and finding out why. For example, has a change in the format of the list produced invalid results? Note that the test is not meant to be equivalent of The distinction is perhaps more obvious when you consider |
er, sorry on the remark on Since The broader question/issue seems to be whether/how gaps are handled; that's primarily a question of spec and implementation ambiguity for which @gerv @weppos and others have been unable to find a clear and complete solution. I would point you to the older Bugzilla bug - https://bugzilla.mozilla.org/show_bug.cgi?id=1139842 and https://bugzilla.mozilla.org/show_bug.cgi?id=1001410 - which tracked a lot of this discussion about how gaps are handled and what the expected results are. |
As @sleevi says, the test cases should be like checkPublicSuffix('amber.museum', NULL); since 'amber.museum' and your other examples are public suffices. |
Thanks, got it! |
I'm running the following test case with
libpsl
:and it fails:
(full test log)
The text was updated successfully, but these errors were encountered: