Regressed Link with line break in hash part is broken

Published: | Categories: Networking


On Firefox 38 and later, HTML links containing a newline character in the fragment followed by # are broken because it’s not allowed by the URL spec and the browser now enforces the constraint. In order to avoid site compatibility issues, this behaviour has been modified with Firefox 42 so the browser will just strip \r (CR), \n (LF) and \t (tab) characters in the hash part. Links containing \0 (null) are still rejected.