W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2005

[Bug 1899] New: Validator passes <input type="checkbox"> without value attribute as valid

From: <bugzilla@wiggum.w3.org>
Date: Sat, 27 Aug 2005 12:57:34 +0000
To: www-validator-cvs@w3.org
Cc:
Message-Id: <E1E90Fa-0002d8-1v@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1899

           Summary: Validator passes <input type="checkbox"> without value
                    attribute as valid
           Product: Validator
           Version: 0.7.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Parser
        AssignedTo: link@pobox.com
        ReportedBy: sgroot@gmail.com
         QAContact: www-validator-cvs@w3.org


The HTML specification for the value attribute on the input element says:
value = cdata [CA] 
This attribute specifies the initial value of the control. It is optional except
when the type attribute has the value "radio" or "checkbox". 

However, when presented with <input type="checkbox" name="chk1" /> (without a
value attribute) the validator will still pass this as valid, even though it is not.

The validator should generate an error message that the required attribute value
is missing.
Received on Saturday, 27 August 2005 12:57:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:51 GMT