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

<test id="wml2/uabehaviour/formprocessing/forminitialisation/menucontrol/24" 
	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, and the 
	NAME attribute is assigned, the pre-selected options are those option 
	elements with their SELECTED attribute assigned. 
	</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'. Display 
	the card and make sure that the options with the SELECTED attribute set 
	are the initial value of the menu control.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<form action="#card3">
					<fieldset>
						<p>Choice</p>
						<select name="choice" multiple="multiple">
							<option value="plane" selected="selected">Airplane</option>
							<option value="train">Railway</option>
							<option value="car" selected="selected">Automobile</option>
						</select>
					</fieldset>
					<fieldset>
						<input type="submit" value="submit" />
					</fieldset>
				</form>
				<p>Is the initial value of the control &apos;Airplane&apos; and &apos;Automobile&apos;?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
		]]>
	</method>
</test>
