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