This seems to be unique to WebKit. Tests: https://github.com/web-platform-tests/wpt/pull/38978. The tests are not perfect at demonstrating this as they were written to ensure the URL parser is used. The part of the tests that fail due to that are probably a less important problem at this point as other user agents do that too.
<rdar://problem/106743603>