8 min read
Form Validation in 2026: 6 Native Constraints Before You Reach for a Library
Native constraints cover 6 common cases without a single byte of JS
The Lab · Written in the open · Tagged HTML
Working notes from the studio. The tools I build, the workflows I keep, the mistakes I paid for.
4 entries · latest 2026-10-23
Latest entry
A real button gives focus, Enter and Space keys, and a role for free dialog handles focus trapping and Escape without any JavaScript details/summary is a disclosure widget with keyboard support built in A div with onClick fakes all of...
Read the entryAll entries · HTML
8 min read
Native constraints cover 6 common cases without a single byte of JS
9 min read
Popover attribute gives top-layer rendering and light-dismiss free
9 min read
Native dialog removed a 14KB modal library from 9 sites