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
Message-Id: <E1E90Fa-0002d8-1v@wiggum.w3.org>


           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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:23 UTC