This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1899 - Validator passes <input type="checkbox"> without value attribute as valid
Summary: Validator passes <input type="checkbox"> without value attribute as valid
Status: RESOLVED LATER
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: 0.7.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-27 12:57 UTC by Sven Groot
Modified: 2005-08-27 13:01 UTC (History)
0 users

See Also:


Attachments

Description Sven Groot 2005-08-27 12:57:33 UTC
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.
Comment 1 Bj 2005-08-27 13:01:13 UTC
This requirement cannot be expressed in DTDs and the Validator is currently 
limited to DTD Validation; this is a known issue and there are many more things 
the validator should but does not check for.