<?xml version="1.0" encoding="UTF-8"?>
<testCaseDescription xmlns="http://bentoweb.org/refs/TCDL2.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:uri="http://www.w3.org/2006/uri#" xmlns:http="http://www.w3.org/2006/http#" xmlns:earlwd="http://www.w3.org/WAI/ER/EARL/nmg-strawman#" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tcd="http://bentoweb.org/refs/TCDL1.1" xmlns:btw="http://bentoweb.org/refs/TCDL2.0/" id="sc3.3.1_l1_033" xsi:schemaLocation="http://bentoweb.org/refs/TCDL2.0/ http://bentoweb.org/refs/schemas/tcdl2.0.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd http://www.w3.org/1999/xhtml http://www.w3.org/2004/07/xhtml/xhtml1-strict.xsd http://www.w3.org/1999/xlink http://bentoweb.org/refs/schemas/xlink.xsd http://www.w3.org/2006/http# http://bentoweb.org/refs/schemas/http.xsd http://www.w3.org/2006/uri# http://bentoweb.org/refs/schemas/uri.xsd http://www.w3.org/WAI/ER/EARL/nmg-strawman# http://bentoweb.org/refs/schemas/earlwd.xsd">
  <formalMetadata>
    <title>Mandatory text input field with error correction (mail address)</title>
    <dc:creator xsi:type="btw:dcHtmlInline">Developed by <html:a href="http://www.w3.org/"><html:acronym title="World Wide Web Consortium">W3C</html:acronym></html:a>/<html:a href="http://www.w3.org/WAI/"><html:acronym title="Web Accessibility Initiative">WAI</html:acronym></html:a>'s <html:a href="http://www.w3.org/WAI/ER/">Evaluation and Repair Tools Working Group</html:a> (ERT WG). We invite comments and discussion. Please address your feedback to <html:a href="mailto:public-wai-ert-tests@w3.org">public-wai-ert-tests@w3.org</html:a>, a mailing list with a <html:a href="http://lists.w3.org/Archives/Public/public-wai-ert-tsdtf/">public archive</html:a>.</dc:creator>
    <dc:language>en</dc:language>
    <dc:rights xsi:type="btw:dcHtmlInline"><html:a rel="Copyright" href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</html:a> © 1994-2008 <html:a href="http://www.w3.org/"><html:acronym title="World Wide Web Consortium">W3C</html:acronym></html:a><html:sup>®</html:sup> (<html:a href="http://www.csail.mit.edu/"><html:acronym title="Massachusetts Institute of Technology">MIT</html:acronym></html:a>, <html:a href="http://www.ercim.org/"><html:acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</html:acronym></html:a>, <html:a href="http://www.keio.ac.jp/">Keio</html:a>), All Rights Reserved. <html:acronym title="World Wide Web Consortium">W3C</html:acronym><html:a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</html:a>, <html:a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</html:a>, <html:a rel="Copyright" href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</html:a> and <html:a rel="Copyright" href="http://www.w3.org/Consortium/Legal/copyright-software">software licensing</html:a> rules apply. Your interactions with this site are in accordance with our <html:a href="http://www.w3.org/Consortium/Legal/privacy-statement#Public">public</html:a> and <html:a href="http://www.w3.org/Consortium/Legal/privacy-statement#Members">Member</html:a> privacy statements.</dc:rights>
    <dc:date xsi:type="btw:btwDate">$Date: 2009/04/29 09:08:23 $</dc:date>
    <status>unconfirmed</status>
    <version>$Revision: 1.14 $</version>
  </formalMetadata>
  <technologies>
    <technicalSpec xlink:href="http://www.w3.org/TR/xhtml1/" handle="XHTML10" mediatype="application/xhtml+xml">
      <specName><html:acronym>XHTML</html:acronym>™ 1.0 The Extensible HyperText Markup Language (Second Edition)</specName>
      <testElements>
        <testElement>
          <elementName localname="input" namespace="http://www.w3.org/1999/xhtml"/>
          <specReference xlink:href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#edef-INPUT">The INPUT element</specReference>
        </testElement>
        <testElement>
          <elementName localname="label" namespace="http://www.w3.org/1999/xhtml"/>
          <specReference xlink:href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#edef-LABEL">The LABEL element</specReference>
        </testElement>
        <testElement>
          <elementName localname="script" namespace="http://www.w3.org/1999/xhtml"/>
          <specReference/>
        </testElement>
        <testElement>
          <elementName localname="input" namespace="http://www.w3.org/1999/xhtml"/>
          <specReference xlink:href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/scripts.html#adef-onclick">Intrinsic events: onclick</specReference>
        </testElement>
      </testElements>
    </technicalSpec>
    <technicalSpec xlink:href="http://www.ecma-international.org/publications/standards/Ecma-262.htm" handle="ECMA262" mediatype="application/javascript">
      <specName>Standard <html:acronym>ECMA</html:acronym>-262 : ECMAScript Language Specification, 3rd edition (December 1999)</specName>
    </technicalSpec>
  </technologies>
  <testCase>
    <dc:description xsi:type="btw:dcHtmlInline">Document containing 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 a mail address with mandatory input. If the user submits and no text is entered or the mail address is invalid, the error is identified and described to the user in text (DOM).</dc:description>
    <purpose>
      <p>The test case is intended to pass, because the input error is specified and presented to the user in text.</p>
    </purpose>
    <expertGuidance>
      <p>For the design of accessible forms it is particularly important to verify appropriateness with assistive technologies like screen readers and ensure proper navigation for users who can access the form by keyboard only. Therefore the expert user is advised to evaluate the form also in this respect. Beyond this it should be mentioned that in order to ensure accessibility of a form presented on a website, it might be necessary to validate the design by the target user group.</p>
    </expertGuidance>
    <files>
      <file>
        <http:GetRequest>
          <http:requestURI>
            <http:absoluteURI>../testfiles/sc3.3.1_l1_033.html</http:absoluteURI>
          </http:requestURI>
          <http:version>1.1</http:version>
        </http:GetRequest>
      </file>
    </files>
  </testCase>
  <rules>
    <rule xlink:href="http://bentoweb.org/refs/rulesets.xml#WCAG2_20070517_3.3_minimize-error-identified">
      <locations expectedResult="pass">
        <location techrefs="G83 G85 SCR18 G139 "><!--If the test file uses client-side or server-side scripting to write content, check that the locations refer to the generated content!-->
          <earlwd:lineCharLen>
            <earlwd:line>86</earlwd:line>
            <earlwd:char>5</earlwd:char>
          </earlwd:lineCharLen>
          <earlwd:xPath>
            <earlwd:expression>/h:html/h:body/h:form/h:div/h:label</earlwd:expression>
          </earlwd:xPath>
        </location>
        <location techrefs="G83 G85 SCR18 G139 "><!--If the test file uses client-side or server-side scripting to write content, check that the locations refer to the generated content!-->
          <earlwd:lineCharLen>
            <earlwd:line>86</earlwd:line>
            <earlwd:char>65</earlwd:char>
          </earlwd:lineCharLen>
          <earlwd:xPath>
            <earlwd:expression>/h:html/h:body/h:form/h:div/h:input</earlwd:expression>
          </earlwd:xPath>
        </location>
        <location techrefs="G83 G85 SCR18 G139 "><!--If the test file uses client-side or server-side scripting to write content, check that the locations refer to the generated content!-->
          <earlwd:lineCharLen>
            <earlwd:line>87</earlwd:line>
            <earlwd:char>73</earlwd:char>
          </earlwd:lineCharLen>
          <earlwd:xPath>
            <earlwd:expression>/h:html/h:body/h:form/h:div/h:div/h:input/@onclick</earlwd:expression>
          </earlwd:xPath>
        </location>
        <location techrefs="G83 G85 SCR18 G139 "><!--If the test file uses client-side or server-side scripting to write content, check that the locations refer to the generated content!-->
          <earlwd:lineCharLen>
            <earlwd:line>7</earlwd:line>
            <earlwd:char>2</earlwd:char>
          </earlwd:lineCharLen>
          <earlwd:xPath>
            <earlwd:expression>/h:html/h:head/h:script[2]</earlwd:expression>
          </earlwd:xPath>
        </location>
      </locations>
      <techniques>
        <technique id="G83" xlink:href="http://www.w3.org/TR/2007/WD-WCAG20-TECHS-20070517/Overview.html#G83"/>
        <technique id="G85" xlink:href="http://www.w3.org/TR/2007/WD-WCAG20-TECHS-20070517/Overview.html#G85"/>
        <technique id="SCR18" xlink:href="http://www.w3.org/TR/2007/WD-WCAG20-TECHS-20070517/Overview.html#SCR18"/>
        <technique id="G139" xlink:href="http://www.w3.org/TR/2007/WD-WCAG20-TECHS-20070517/Overview.html#G139"/>
      </techniques>
      <techComment>
        <p>After submission, the error is specified and presented to the user.</p><!-- @@remove mappings below after technique elements (above) have been checked. -->
        <p>This test case maps to technique <html:span class="technique">G83: Providing text descriptions to identify required fields that were not completed</html:span>.</p>
        <p>This test case maps to technique <html:span class="technique">G85: Providing a text description when user input falls outside the required format or values</html:span>.</p>
        <p>This test case maps to technique <html:span class="technique">SCR18: Providing client-side validation and alert</html:span>.</p>
        <p>This test case maps to technique <html:span class="technique">G139: Creating a mechanism that allows users to jump to errors</html:span>.</p>
      </techComment>
    </rule>
  </rules>
  <namespaceMappings>
    <namespace nsURI="http://www.w3.org/1999/xhtml" nsPrefix="h"/>
  </namespaceMappings>
</testCaseDescription>
