KEMBAR78
The spec doesn't seem clear on how to handle "incomplete" hostnames · Issue #694 · publicsuffix/list · GitHub
Skip to content

The spec doesn't seem clear on how to handle "incomplete" hostnames #694

@rushmorem

Description

@rushmorem

By "incomplete" hostname, I mean a hostname that's entirely part of some rule or rules but does not have enough labels to match the rule or rules entirely. Examples of such hostnames are yokohama.jp and kobe.jp.

The relevant rules for those hostnames are:-

jp
*.kobe.jp
*.yokohama.jp
!city.yokohama.jp

I have seen these two, interpreted differently by at least two implementations and I understand how it can go either way. libpsl returns the public suffices for those domains as yokohama.jp and kobe.jp respectively. Servo's net_traits crate, however, returns jp for both, which leads to weird test cases like these.

What's the official position on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions