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

No top articles yet