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


<testsuite id="ts0505-confirm-form-submit-automatic">
	
	<metaInfo>
		<testTitle>Confirm Automatic Form Submission</testTitle>
		<shortTitle>Confirm Automatic Form Submission</shortTitle>		
		<testElementList>
			<testElementItem specName="HTML 4.01" cite="http://www.w3.org/TR/html401/interact/scripts.html#h-18.2.3">ONCHANGE</testElementItem>
		</testElementList>	
		<creator>Colin Koteles</creator>						
		<metaElement></metaElement>
		<testStyle></testStyle>
	</metaInfo>
	
	<requirementInfo>
		<checkpoints>
			<checkpoint xref="tech-info-form-submit">
            <provisions>
					<provision xref="tech-info-form-submit-1"/>																																		
			   </provisions>
         </checkpoint>
		</checkpoints>
	</requirementInfo>
	
	<content>	
		<test section="1">
			<procedure>
				<list>
					<item>Configure the user agent to prompt the user to confirm (or cancel) any form submission.</item>
					<item>Change the option value of the select field in the test form.</item>
				</list>
			</procedure>
			<testCode>
				<div>
					<p>Test form 1:</p>
 					 <form action="../action/return.html" method="get" id="testForm" name="testForm">
							<select id="select1" onchange="submitForm()" name="select1"> 
								<option value="0" selected="selected">Choose an option</option> 
								<option value="1">Option 1</option>
								<option value="2">Option 2</option>
								<option value="3">Option 3</option>
							</select>
						</form>  		
					</div>
			</testCode>
      	<exResults>
				<list>
					<item>The user agent should prompt the user to confirm or cancel the form submission before submitting the test form in response to the onchange event.</item>
				</list>
			</exResults>
			<sourcescript>
				function submitForm()
				{
					document.testForm.submit(); 
				}	
			</sourcescript>			
		</test>
						
	</content>

</testsuite>
