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

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 UTC