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

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

From: <bugzilla@jessica.w3.org>
Date: Fri, 12 Aug 2011 23:00:37 +0000
To: public-html@w3.org
Message-ID: <bug-13769-2495@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13769

           Summary: Whitespace-only values should be considered empty in
                    required form fields
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: mtanalin@yandex.ru
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


Currently, whitespace value is considered valid during browser-side form
validation according to "required" boolean attribute of a form element.

This is contrary to practices of server-side form validation where leading and
trailing whitespace is usually removed (trimmed) before validation since
whitespace is usually not useful data of any kind.

So, it makes sense to make browser-side validation consistent with good
server-side validation practices:

whitespace-only values should be full equivalent to zero-length value and
should be considered empty too.

Thanks.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Friday, 12 August 2011 23:00:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:37 GMT