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

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

From: <bugzilla@jessica.w3.org>
Date: Sun, 02 Oct 2011 15:11:51 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1RANhn-0002Ol-Oa@jessica.w3.org>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:02:05 UTC