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

[Bug 13769] WF3: Add trim="" attribute to <input type=text/search> that strips leading and trailing whitespace from the value

From: <bugzilla@jessica.w3.org>
Date: Thu, 27 Oct 2011 16:12:12 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1RJSYu-0002mE-BJ@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13769

--- Comment #39 from Marat Tanalin | tanalin.com <mtanalin@yandex.ru> 2011-10-27 16:12:07 UTC ---
(In reply to comment #38)

Trimming just _makes sense_ mainly as for validation.

Anyway, it should be at least clearly described in the HTML5 spec that trimming
should be applied _before_ validating according to 'required' attribute.

Otherwise we could face with wrong implementations where validation says "OK"
(field is not empty though contains whitespace-only characters) and _then_
trimming is applied, and [now] empty string is sent to server. This absurd
situation should be ruled out by clear definition of trimming in the spec.

Thanks.

-- 
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 Thursday, 27 October 2011 16:12:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 27 October 2011 16:12:14 GMT