<?xml version="1.0"?>
<!DOCTYPE testsuite SYSTEM "http://www.w3.org/WAI/UA/TS/dtd/uaag-testsuite-2.dtd">


<testsuite id="ts0102-onchange-textarea">
	
	<metaInfo>
		<testTitle>ONCHANGE attribute for TEXTAREA elements</testTitle>
		<shortTitle>ONCHANGE events for TEXTAREA controls</shortTitle>
		<testElement>
			<elementName>ONCHANGE</elementName>
			<hlink href="http://www.w3.org/TR/html401/interact/scripts.html#h-18.2.3">&hspec; ONCHANGE</hlink>
		</testElement>		
		<testElement>
			<elementName>TEXTAREA</elementName>
			<hlink href="http://www.w3.org/TR/html401/interact/forms.html#h-17.7">&hspec; TEXTAREA</hlink>
		</testElement>				
		<creator>Dominique Kilman</creator>
		<creator>Colin Koteles</creator>		
		
				
		<metaElement></metaElement>
		<testStyle></testStyle>
	</metaInfo>
	
	<requirementInfo>
   	<checkpoints>
      	<checkpoint xref="tech-device-independent-handlers">
         	<provisions>
            	<provision xref="tech-device-independent-handlers-1"/>
            </provisions>
         </checkpoint>
      </checkpoints>
 	</requirementInfo>
	
	<content>
		
		
		
		<test section="1">
			<procedure>
				<list>
					<item>Using the keyboard or an assistive technology that emulates the keyboard, move focus to the text area and alter the original text area value.</item>
					<item>Using the keyboard or an assistive technology that emulates the keyboard, move focus off the text area to trigger the onChange event.</item>
				</list>
			</procedure>
			<testCode>
  				<form action="../action/return.html">
					<label for="origText">Original Value:</label>
					<textarea id="origText" name="origText" rows="1" cols="20" onchange="changeTest(this.form)">Original Value</textarea><br/> 
					<label for="echoText">Echoed Value:</label>
					<textarea id="echoText" name="echoText" rows="1" cols="20"></textarea>
				</form>
			</testCode>
      	<exResults>
				<list>
					<item>The "Echoed Value" text area takes on the same value as the "Original Value" text area when the onChange event is triggered.</item>
				</list>
			</exResults>
			<sourcescript>
				function changeTest ( form ) 
				{
	  				form.echoText.value = form.origText.value;
				}
			</sourcescript>
		</test>
						
	</content>

</testsuite>