SC 3.3.1: Providing client-side validation and adding error text via the DOM (future technique )

Hi,

Test case sc2.5.1_l1_025 in the second version of the BenToWeb test 
suite [1] (for the April 2006 working draft) tried to implement this 
technique but failed. The test file contains two mandatory text input 
fields (first name, last name) that are already filled and set to 
read-only. In addition, it contains one text input field for entering 
the date of birth with mandatory input. If the user submits and no 
date is entered or the date is invalid, the error is identified and 
described to the user in text below the form (JavaScript adds text to 
the DOM). However, screenreader users may not notice the text below 
the form because the focus remains on the submit button after 
"submission" (JavaScript catches the missing input, so nothing is 
submitted to the server); when tabbing off the submit button, the 
focus moves to the URL bar instead of to the message below the form. 
We tried different variations on this technique, one of which 
included a change to the text of the submit button to draw attention 
to the error message, but that did not solve the focus problem.

[1] http://www.bentoweb.org/ts/XHTML1_TestSuite2/metadata/sc2.5.1_l1_025

Best regards,

Christophe Strobbe


-- 
Christophe Strobbe
K.U.Leuven - Dept. of Electrical Engineering - SCD
Research Group on Document Architectures
Kasteelpark Arenberg 10 bus 2442
B-3001 Leuven-Heverlee
BELGIUM
tel: +32 16 32 85 51
http://www.docarch.be/ 


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Received on Friday, 1 February 2008 20:15:30 UTC