Closed
Description
Version
18.16.0
Platform
Linux xxx.com 5.19.0-1025-aws #26~22.04.1-Ubuntu SMP Mon Apr 24 01:58:15 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
ubuntu22.04
What steps will reproduce the bug?
Node 18.16.0:
(new URL(`https://${"ZaaZaaaZaaaZbbbZbbbbZ".toUpperCase()}.test.com:443`)).hostname
results to ZaaZaaaZaaaZbbbZbbbbZ.test.com
Node <=18.13.0 results to zaazaaazaaazbbbzbbbbz.test.com
.
Since lowercasing is part of IDNA (regarding ada-url/ada#129 (comment)) and all browsers also seem to lowercase everything, this is a bug, because only "Z" is kept uppercase in my tests. This bug caused big problems in our application, this is how we have detected this problem.
How often does it reproduce? Is there a required condition?
in new ADA parser >=18.16.0
What is the expected behavior? Why is that the expected behavior?
see the report
What do you see instead?
see the report
Additional information
No response