Closed derhuerst closed 8 months ago
This is as expected when using the low-level parseURL
API and inspecting the internal URL record data structure. If you want to serialize the host back to a string, use serializeHost
.
Or, just use the high-level API.
This also happens with
whatwg-url@13.0.0
btw.