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

<test id="wml2/uabehaviour/formprocessing/forminitialisation/menucontrol/32" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.2.3" device="both">
  <assertion>When the WML:IVALUE, attribute of the SELECT element is 
  assigned, the SELECTED attribute of the OPTION element must be ignored. 
  </assertion>
  <specnote>Create a card with three OPTION elements within a SELECT 
  element. Set the WML:IVALUE attribute of the SELECT element to '2', and 
  the MULTIPLE attribute to 'multiple'. Set also the SELECTED attribute 
  of one of the other option to 'selected'. Make sure that the only one 
  pre-selected option is the option referenced by the WML:IVALUE 
  variable, e.g. the second option.
  </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 wml:name="choice" wml:ivalue="2" multiple="multiple">
      				<option value="plane">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 only &quot;Railway&quot;?
  				<br/>
  				[[yesno]]
  			</p>
			</wml:card>
		]]>
  </method>
</test>
