<?xml version="1.0" encoding="UTF-8"?>
<!--

	$Author: richard $

	$Revision: 1.8 $

	$Log: 4,v $
	Revision 1.8  2002/06/17 09:44:11  richard
	newcontext
	
	Revision 1.7  2002/04/23 08:48:23  richard
	reset with a name

	Revision 1.6  2002/02/28 16:39:51  richard
	error in the fiel, miss the quote

	Revision 1.5  2002/02/28 16:14:23  richard
	 error in the wml:do element (bad attribute)

	Revision 1.4  2002/02/28 15:55:31  richard
	rewrite tests

	Revision 1.3  2001/10/30 16:22:32  gb
	Modified all the test files in the wml2 directory such that it puts the <?xml?> declaration back at the top of the file, before the comment.

	Revision 1.2  2001/10/08 21:56:16  gb
	Added the standard header of Author, Revision and Log at the top of each template file.


-->
<test id="wml2/uabehaviour/formprocessing/forminitialisation/4" class="A" 
	scope="wml2" testtype="application" type="manual" source="wml2#5.4.2" 
	device="both">
	<assertion>When a card is reached through either forward or backward 
	navigation, the user agent must perform form initialisation.
	</assertion>
	<specnote>Create a card that holds a text input control with an initial 
	value. Navigate to a second card and then press the back button. When 
	the initial card is re-displayed, it must show the text input control 
	with the initial value shown.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Change the values in the controls then 
					Click this &nbsp;<a href="#card2">Link</a>&nbsp;
					to go to the second card. On returning the values
					of the controls should go back to their initial
					values.
				</p>
				<form action="#dummy">
					<fieldset>
			 			<p>recipient:</p>
						<input wml:name="recipient" value="nb@nb.com" />
					</fieldset>
					<fieldset> 
						<p>subject:</p>
						<input wml:name="subject" value="WML 2.0" /> 
					</fieldset>
					<fieldset>
						<input type="submit" value="submit" />
						<input type="reset" value="reset" />
					</fieldset>
				</form>
				<p>Was the initial value of the control re-displayed when 
					re-entering this card?
					<br />
					[[yesno]]
				</p>
			</wml:card>
			<wml:card id="card2" title="card2">
				<wml:do type="accept">
					<wml:prev />
				</wml:do>
				<p>This is card 2<br />
					Now go back.
				</p>
			</wml:card>
		]]>
	</method>
</test>
