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


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


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 UTC