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

    <shortTitle>ACCESSKEY attribute for LEGEND</shortTitle>

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

    <testElement>
      <elementName>LEGEND</elementName>
		<hlink href="http://www.w3.org/TR/html401/interact/forms.html#h-17.10">&hspec; LEGEND</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>legend element</testDesc>
      <procedure>
        <list>
          <item>Using the standard keyboard or an assistive technology that emulates the keyboard, move focus to each form fieldset using the accesskey assigned to each fieldset legend element.</item>
        </list>
      </procedure>

      <testCode>
        	<form action="../action/return.html" method="post" title="Test Form 1" enctype="application/x-www-form-urlencoded">
				<fieldset>
					<legend accesskey="a">Form fieldset 1 (accesskey "A")</legend>
					<label>Test text input 1 (fieldset 1): <input type="text" name="text1"/></label><br/>
					<label>Test text input 2 (fieldset 1): <input type="text" name="text2"/></label><br/>
					<label>Test textarea 1 (fieldset 1):  <textarea rows="2" cols="20" name="textarea1"></textarea></label>	
				</fieldset>
				<fieldset>
					<legend accesskey="b">Form fieldset 2 (accesskey "B")</legend>
					<label>Test text input 3 (fieldset 2): <input type="text" name="text3"/></label><br/>
					<label>Test text input 4 (fieldset 2): <input type="text" name="text2"/></label><br/>
					<label>Test textarea 2 (fieldset 2):  <textarea rows="2" cols="20" name="textarea2"></textarea></label>		
				</fieldset>
				<fieldset>
					<legend accesskey="c">Form fieldset 3 (accesskey "C")</legend>
					<label>Test reset input button: <input type="reset" name="reset1" value="Reset"/></label>
					<label>Test submit input button: <input type="submit" name="submit1" value="Submit"/></label>	
				</fieldset>
			</form>
      </testCode>

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

