react-native-url-polyfill
react-native-url-polyfill copied to clipboard
URL should normalize host according to spec
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.