New technique: Technique 10.4.1 [priority 3] Check for valid default values of INPUT, TEXTAREA, and SELECT elements.

Michael wrote:
<blockquote>
Checkpoint 10.4 - Until user agents handle empty controls correctly, 
include default, place-holding characters in edit boxes and text areas
New Technique: following algorithms collectively would cover this:
presence of valid VALUE attribute for INPUT where TYPE attribute is "text"
for each set of INPUTs
where TYPE attribute is "checkbox" or "radio" and
with the same value for NAME attribute,
one should have a SELECTED attribute
valid content of a TEXTAREA
among all OPTIONs in a SELECT, one must have a SELECTED attribute
</blockquote>

i propose
<blockquote>
Technique 10.4.1 [priority 3] Check for valid default values of INPUT, 
TEXTAREA, and SELECT elements.
Discussion Status:
awaiting discussion
Evaluation:
Check INPUT elements of type="text" for valid "value" attribute.
Check INPUT elements of type="checkbox" or "radio" with the same "name" 
attribute for one of them to have a "selected" attribute.
Check TEXTAREA for valid text content.
Check all OPTIONs in a SELECT element for one of them to have a "selected" 
attribute.
Example Language:
none.
Repair Technique:
For INPUT elements of type="text" and TEXTAREA elements, ask the user for 
default text or suggest a space.
For groups of radio buttons, checkboxes, and selection boxes, ask the user 
to pick one to be the default.
Test Files and Discussion Files:
</blockquote>
--
wendy a chisholm
world wide web consortium
web accessibility initiative
madison, wi usa
tel: +1 608 663 6346
/--

Received on Monday, 31 January 2000 16:10:39 UTC