W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > August 2011

[Bug 13769] Whitespace-only values should be considered empty in required form fields

From: <bugzilla@jessica.w3.org>
Date: Mon, 15 Aug 2011 14:59:53 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Qsydt-0004IJ-5d@jessica.w3.org>

--- Comment #2 from Mounir Lamouri <mounir.lamouri@gmail.com> 2011-08-15 14:59:52 UTC ---
I wouldn't like trimming required fields, it would break some use cases like
<input type='password' required>: the user wouldn't be allowed to type
spaces-only password. Not that it would be a good idea, but the specs shouldn't
make this impossible. In addition, if we do the trimming the same way we do it
for <input type='email'> and <input type='url'> (ie, in the value sanitization
algorithm), that would modify passwords beginning or ending with spaces.

(In reply to comment #1)
> Maybe instead we should have a new feature <input trim>.

Sounds a good idea if the attribute doesn't apply to type=password and interact
directly with the value sanitization algorithm.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 15 August 2011 14:59:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:16 UTC