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


<testsuite id="ts0102-onchange-input">
	
	<metaInfo>
		<testTitle>ONCHANGE attribute for INPUT elements</testTitle>
		<shortTitle>ONCHANGE events for INPUT 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>INPUT</elementName>
			<hlink href="http://www.w3.org/TR/html4/interact/forms.html#h-17.4">&hspec; INPUT</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 input control and alter the input control's value.</item>
					<item>Using the keyboard or an assistive technology that emulates the keyboard, move focus off the input control to trigger the onChange event.</item>
				</list>
			</procedure>
			<testCode>
				<form action="../action/return.html" method="post" id="origForm">
					<label for="orig">Original Value: </label>
					<input id="orig" onchange="changeTest(this.form)" name="orig"/><br/>
					<label for="echo">Echoed Value: </label>
					<input id="echo"/>
				</form>
			</testCode>
      	<exResults>
				<list>
					<item>When the onChange event is triggered, the "Echoed Value" input box displays the same value as the "Original Value" input box.</item>
				</list>
			</exResults>
			<sourcescript>
				function changeTest ( form ) 
				{
	  				form.echo.value = form.orig.value
				}				
			</sourcescript>
		</test>
						
	</content>

</testsuite>