Stefan Judis 3/3/2026

New lines are removed from WHATWG URLs (#tilPost)

Read Original

This article details a technical discovery about URL parsing: the WHATWG specification dictates that ASCII tabs and newlines are treated as invalid units and are automatically removed by browsers and JavaScript's URL API. It includes examples and a demonstration of how links with these characters still function correctly.

New lines are removed from WHATWG URLs (#tilPost)

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
2
Container queries are rad AF!
Chris Ferdinandi 2 votes
3
Wagon’s algorithm in Python
John D. Cook 1 votes