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

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13769

--- 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