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

	$Author: richard $

	$Revision: 1.2 $

	$Log: 21,v $
	Revision 1.2  2002/06/18 15:44:10  richard
	change the way of writing the multiple values
	
	Revision 1.1  2002/06/06 13:50:46  richard
	new spec

	Revision 1.6  2002/04/25 12:33:11  richard
	add an extra autofailed

	Revision 1.5  2002/04/19 15:25:12  richard
	autofailed

	Revision 1.4  2002/03/14 16:51:03  richard
	 rewrite test

	Revision 1.3  2001/10/30 16:22:40  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:20  gb
	Added the standard header of Author, Revision and Log at the top of each template file.


-->
<test id="wml2/uabehaviour/formprocessing/forminteraction/menucontrol/21" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.3.3" device="both">
	<assertion>When the WML:NAME attribute of the SELECT element is 
	specified, and multiple selections are permitted, the user agent must 
	not allow the WML:NAME control variable to contain empty values
	(e.g. 'cat;"";dog').
	</assertion>
	<specnote>Create a card with three OPTION elements (with their VALUE 
	attributes set to 'cat', '', 'dog', respectively) within a SELECT 
	element. Set the WML:VALUE to contain 'cat;"";dog'. Submit the form and 
	make sure that the control variable is equal to 'cat;dog'.
	</specnote>
	<results>
		<result ci="true" resulttype="one">
			<name>test</name>
			<value>plane;car</value>
			<value>car;plane</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Please Submit the form without changing the default selected options</p>
				<form action="#card2">
					<fieldset>
						<p>Choice</p>
						<select wml:name="choice" wml:value="plane;'';car" multiple="multiple">
							<option value="plane">Airplane</option>
							<option value="">Railway</option>
							<option value="car">Automobile</option>
						</select>
					</fieldset>
					<fieldset>
						<input type="submit" value="submit" />
					</fieldset>
				</form>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2" title="card2">
				<wml:onevent type="enterforward">
					<wml:go href="[[resulturl]]">
						<wml:postfield name="test" value="$choice" />
						[[sessionvars]]
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
		]]>
	</method>
</test>
