<?xml version="1.0"?>
<!DOCTYPE testsuite SYSTEM "http://www.w3.org/WAI/UA/TS/dtd/uaag-testsuite-2.dtd">
<testsuite id="ts0101-accesskey-label">
  <metaInfo>
    <testTitle>ACCESSKEY attribute for LABEL</testTitle>

    <shortTitle>ACCESSKEY attribute on LABEL</shortTitle>

    <testElement>
      <elementName>ACCESSKEY</elementName>
		<hlink href="http://www.w3.org/TR/html401/interact/forms.html#adef-accesskey">&hspec; ACCESSKEY</hlink>
    </testElement>

    <testElement>
      <elementName>LABEL</elementName>
		<hlink href="http://www.w3.org/TR/html401/interact/forms.html#h-17.9.1">&hspec; LABEL</hlink>
    </testElement>

    <creator>Colin Koteles</creator>

    <metaElement>
    </metaElement>

    <testStyle>
    </testStyle>
  </metaInfo>

  <requirementInfo>
    <checkpoints>
      <checkpoint xref="tech-device-independent-ui">
        <provisions>
          <provision xref="tech-device-independent-ui-1" />
        </provisions>
      </checkpoint>
    </checkpoints>
  </requirementInfo>

  <content>
    <test>
      <testDesc>label element</testDesc>
      <procedure>
        <list>
          <item>Using the standard keyboard or an assistive technology that emulates the keyboard, move focus to each form contol using the accesskey assigned to the form control label.</item>
        </list>
      </procedure>

      <testCode>
        <form action="../action/return.html" method="post" title="Test Form 1" enctype="application/x-www-form-urlencoded">
				<table border="1" cellpadding="5" summary="Layout table for test form number 1">			
					<tr>
						<th rowspan="1" colspan="1">Test form for form control element labels containing the accesskey attribute</th>
					</tr> 	
					<tr>
						<td rowspan="1" colspan="1"><label accesskey="a">Test text input (accesskey "A"): <input type="text" name="text1"/></label></td>
					</tr>							
					<tr>
						<td rowspan="1" colspan="1"><label accesskey="b">Test textarea input (accesskey "B"): <textarea rows="1" cols="20" name="textarea1"></textarea></label></td>
					</tr>												
					<tr>
						<td rowspan="1" colspan="1"><label accesskey="c">Test reset input button (accesskey "C"): <input type="reset" name="reset1" value="Reset"/></label></td>
					</tr>
					<tr>
						<td rowspan="1" colspan="1"><label accesskey="d">Test submit input button (accesskey "D"): <input type="submit" name="submit1" value="Submit"/></label></td>
					</tr>							
				</table>
			</form>
      </testCode>

      <exResults>
        <list>
          <item>The keyboard or assistive technology that emulates
          the keyboard moves focus to each form control.
			 Focus is moved using the key that corresponds to the value of the accesskey attribute for each form control label.</item>
        </list>
      </exResults>
    </test>
   
  </content>
</testsuite>

