<?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.2_l2_004" 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>Text input fields for date with suggestions for correction.</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="onclick" 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</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/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>
      </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 fields (first name, last name) that are already filled an set to read-only and 3 text input fields for entering the date. If the date is invalid, suggestions for correction are made (JavaScript).</dc:description>
    <purpose>
      <p>The document is intended to pass because suggestions for corrections are provided.</p>
    </purpose>
    <expertGuidance>
      <p>Javascript must be enabled for the test files to work as intended.</p>
    </expertGuidance>
    <files>
      <file>
        <http:GetRequest>
          <http:requestURI>
            <http:absoluteURI>../testfiles/sc3.3.2_l2_004.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-suggestions">
      <locations expectedResult="pass">
        <location techrefs="G83 G84 G85 G139 SCR18 "><!--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>126</earlwd:line>
            <earlwd:char>7</earlwd:char>
          </earlwd:lineCharLen>
          <earlwd:xPath>
            <earlwd:expression>/h:html/h:body/h:form/h:div/h:div/h:label[1]</earlwd:expression>
          </earlwd:xPath>
        </location>
        <location techrefs="G83 G84 G85 G139 SCR18 "><!--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>128</earlwd:line>
            <earlwd:char>3</earlwd:char>
          </earlwd:lineCharLen>
          <earlwd:xPath>
            <earlwd:expression>/h:html/h:body/h:form/h:div/h:input[1]</earlwd:expression>
          </earlwd:xPath>
        </location>
        <location techrefs="G83 G84 G85 G139 SCR18 "><!--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>126</earlwd:line>
            <earlwd:char>36</earlwd:char>
          </earlwd:lineCharLen>
          <earlwd:xPath>
            <earlwd:expression>/h:html/h:body/h:form/h:div/h:div/h:label[2]</earlwd:expression>
          </earlwd:xPath>
        </location>
        <location techrefs="G83 G84 G85 G139 SCR18 "><!--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>129</earlwd:line>
            <earlwd:char>6</earlwd:char>
          </earlwd:lineCharLen>
          <earlwd:xPath>
            <earlwd:expression>/h:html/h:body/h:form/h:div/h:input[2]</earlwd:expression>
          </earlwd:xPath>
        </location>
        <location techrefs="G83 G84 G85 G139 SCR18 "><!--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>126</earlwd:line>
            <earlwd:char>64</earlwd:char>
          </earlwd:lineCharLen>
          <earlwd:xPath>
            <earlwd:expression>/h:html/h:body/h:form/h:div/h:div/h:label[3]</earlwd:expression>
          </earlwd:xPath>
        </location>
        <location techrefs="G83 G84 G85 G139 SCR18 "><!--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>130</earlwd:line>
            <earlwd:char>6</earlwd:char>
          </earlwd:lineCharLen>
          <earlwd:xPath>
            <earlwd:expression>/h:html/h:body/h:form/h:div/h:input[3]</earlwd:expression>
          </earlwd:xPath>
        </location>
        <location techrefs="G83 G84 G85 G139 SCR18 "><!--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>131</earlwd:line>
            <earlwd:char>58</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>
      </locations>
      <techniques>
        <technique id="G83" xlink:href="http://www.w3.org/TR/2007/WD-WCAG20-TECHS-20070517/Overview.html#G83"/>
        <technique id="G84" xlink:href="http://www.w3.org/TR/2007/WD-WCAG20-TECHS-20070517/Overview.html#G84"/>
        <technique id="G85" xlink:href="http://www.w3.org/TR/2007/WD-WCAG20-TECHS-20070517/Overview.html#G85"/>
        <technique id="G139" xlink:href="http://www.w3.org/TR/2007/WD-WCAG20-TECHS-20070517/Overview.html#G139"/>
        <technique id="SCR18" xlink:href="http://www.w3.org/TR/2007/WD-WCAG20-TECHS-20070517/Overview.html#SCR18"/>
      </techniques>
      <techComment>
        <p>User is provided with suggestions for correcting the error.</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">G84: Providing a text description when the user provides information that is not in the list of allowed values</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">G139: Creating a mechanism that allows users to jump to errors</html:span>.</p>
        <p>This test case maps to technique <html:span class="technique">SCR18: Providing client-side validation and alert (Scripting)</html:span>.</p>
      </techComment>
    </rule>
  </rules>
  <namespaceMappings>
    <namespace nsURI="http://www.w3.org/1999/xhtml" nsPrefix="h"/>
  </namespaceMappings>
</testCaseDescription>
