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: Sat, 01 Oct 2011 21:17:28 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1RA6w4-0003Vp-Sp@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13769

--- Comment #20 from Marat Tanalin | tanalin.com <mtanalin@yandex.ru> 2011-10-01 21:17:25 UTC ---
(In reply to comment #19)
See comment 11.

By the way, it maybe could be more flexible (and therefore more feasible for
the editor to accept) to add new 'trim' boolean attribute -- as Anne has
proposed in comment 1.

This could have benefits for both sides:

1. default definition of 'required' state keeps simple as it is currently;

2. when needed (in fact, always), web-developers could automatically add trim
attribute to all required fields by using trivial JavaScript like this:

[].slice.call(document.querySelectorAll('[required]'), 0).forEach(function() {
    this.trim = true;
});

-- 
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 Saturday, 1 October 2011 21:17:30 UTC

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