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

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 29 Sep 2011 21:28:54 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1R9OA2-0005FA-WA@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13769

--- Comment #13 from Marat Tanalin | tanalin.com <mtanalin@yandex.ru> 2011-09-29 21:28:52 UTC ---
(In reply to comment #12)

If you want, you are free to trim all that Unicode whitespace stuff.

But, in real world, it's enough to trim ASCII-whitespace only -- since this is
the only what can be typed-in with keyboard.

Thus, it's enough to do same action as PHP's (widely-used server-side language)
standard function named trim():
http://php.net/manual/en/function.trim.php

By the way, standard JavaScript's String object has standard method trim() too:
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/Trim

We could define URL-trimming same way as the JS-method is defined.

-- 
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, 29 September 2011 21:28:56 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:19 UTC