I had no idea, but apparently, you can just use newline characters and tabs in URLs without any issues.
Notice how it reports an error if there is a tab or newline character, but continues anyway? The specification says that A validation error does not mean that the parser terminates and it encourages systems to report errors somewhere. Effectively, the error is ignored although it might be logged. Thus our HTML is fine in practice.
↫ Daniel Lemire
This reminds me of the “Email is easy” quiz.
