Closed igibek closed 2 years ago
Yep, that's what the spec says to do! https://url.spec.whatwg.org/#ref-for-concept-url-port%E2%91%A2
I missed that part. Thanks for the quick response. However, in general, I think it is non-intuitive behavior from spec :)
Hey, I noticed inconsistent behavior while the port number is parsed in the URL. Specifically, if the port number is equal to 80,
whatwg-url
will drop it from the returned value. See examples below:Expected behavior:
Inconsisted behavior: