Skip to content

URL should normalize host according to spec #462

Open
@estrattonbailey

Description

@estrattonbailey

The URL implementation used by this library doesn't appear to normalize URL hostnames in the same way as the implementations of Node 18 and WHATWG.

Here's a repro: https://replit.com/@estrattonbailey/URL-normalization

whatwg-url-without-unicode doesn't have Issues enabled or I would have filed there.

The spec says this:

Although host is case-insensitive, producers and normalizers should use lowercase for registered names and hexadecimal addresses for the sake of uniformity, while only using uppercase letters for percent-encodings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions