Formatting
URL parser breaks one absolute URL into the pieces a browser already computed and people usually reimplement wrong. https://shop.example:8443/search?q=wool+socks#results comes back with protocol https:, hostname shop.example, port 8443, path /search, one parameter pair q and wool socks, and fragment #results. The plus in the query is decoded to a space inside the parameter value. The fragment keeps its hash mark.
The port is empty when the URL uses the default and does not write one. The path is the pathname only, so a missing path is /. Parameters are pairs in order, the same decoding as the query parser, nested under this object rather than returned alone.
A string that is not an absolute URL throws. Odd socks in the dryer. is not a URL, and neither is a schemeless host. There is no “try to fix it” pass. Internationalized domains are whatever the URL parser in the browser produces.
https://shop.example:8443/search?q=wool+socks#results
protocol https:, hostname shop.example, port 8443, path /search, parameters [["q", "wool socks"]], fragment #results.
The port field stays separate from the host. Concatenating them yourself is how :8443 ends up in the wrong config.
The page reports the URL’s hash as the platform defines it, mark included. An empty fragment is an empty string, not a missing field.
Inside a query value, + decodes to a space. wool+socks is the value wool socks. The raw spelling is what you pasted; the pair is the decoded form.
The port field is empty. Default ports are not invented, so an https URL without :443 does not suddenly grow one.
No. It only labels the parts. The cleaner and the UTM remover delete parameters.