[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 #22 from Marat Tanalin | tanalin.com <mtanalin@yandex.ru> 2011-10-02 15:11:51 UTC ---
(In reply to comment #21)
> A trim="" attribute wouldn't be a bad idea, indeed. Would it be acceptable?

Definitely better than nothing.

Formal description of expected 'trim' functionality just in case:

if 'trim' attribute will be added to the spec, it should have same result as if
'required' attribute itself has default behavior defined as "zero-length string
is equivalent to whitespace-only string". In other words, adding 'trim'
attribute should cause showing same browser-validation message for
whitespace-only strings as is showing currently for zero-length strings.

-- 
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 Sunday, 2 October 2011 15:11:53 UTC