Skip to content

Make "is a registrable domain suffix of or is equal to" return the parsed domain #11371

Open
@masnoble

Description

@masnoble

What is the issue with the HTML Standard?

In a recent cookie store PR, we called into the "is a registrable domain suffix of or is equal to". Although this check internally runs the host parser for comparison, it unfortunately discards the parsed result, returning only a boolean (true or false). This necessitated re-running the host parser to store the parsed string, which is inefficient.

Ideally, the check should return the parsed string directly, allowing callers to utilize the already computed result.

CC: @annevk

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions