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

<test id="wml2/uabehaviour/formprocessing/forminitialisation/menucontrol/27" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.2.3" device="both">
	<assertion>When neither the WML:NAME, the WML:INAME, the WML:VALUE nor
	the WML:INAME is assigned, multiple selections are permitted, the NAME 
	attribute is assigned, and the VALUE attribute of the pre-selected 
	OPTION element are not specified, the initial value of the control 
	variable must be a string consisting of a semicolon-delimited list 
	of the content of the pre-selected OPTION element.
	</assertion>
	<specnote>Create a card with three OPTION elements within a SELECT 
	element. Set the value of the NAME attribute of the SELECT element 
	and the SELECTED attribute of two of the options to 'selected' but with
	no VALUE attribute specified for the selected options. Display the card 
	and make sure that the NAME attribute is set to a string consisting of 
	a semicolon-delimited list of the content of the pre-selected OPTION 
	element.
	</specnote>
	<results>
		<result ci="true" resulttype="one">
			<name>test</name>
			<value>airplane;automobile</value>
			<value>automobile;airplane</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Please submit without changing anything</p>
				<form action="#card1">
					<fieldset>
						<p>Choice</p>
						<select name="choice" multiple="multiple">
							<option selected="selected">airplane</option>
							<option value="train">railway</option>
							<option selected="selected">automobile</option>
						</select>
					</fieldset>
					<fieldset>
						<input type="submit" value="submit" />
					</fieldset>
				</form>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card1">
				<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>
