Trim Form Values Before Accepting Them
@prranitarora▲ 10 net votes
An HTML required text input accepts whitespace because spaces are nonempty to the browser. Strip the submitted value on the server and skip it if the result is empty; a Playwright flow submitting three spaces confirms no blank task is created.