<?xml version="1.0" encoding="UTF-8"?>
<test id="wml/struct/control/select/option/5" class="A" scope="wml" testtype="application" type="manual" source="wml13#11.6.2.2" device="both">
  <assertion>When the OPTION element contains a value with a variable reference,
the variable is evaluated before the name variable is set.
</assertion>
  <specnote>Added with wml version 1.3.</specnote>
  <results>
    <result>
      <name>submit</name>
      <value>yes</value>
    </result>
  </results>
  <method>
    <![CDATA[<card newcontext="true" id="main">
<p>Select this&nbsp;
<anchor>
	<go href="#card1">
		<setvar name="optionvalue" value="two"/>
	</go>
link
</anchor>
<br/>
You chose option $(resultval)
</p>
<p mode="wrap">Is the text 'You chose option two' displayed?
<br />
<yesno>
</p>
</card>]]>
  </method>
  <cards>
    <card id="1">
      <![CDATA[<card id="card1">
<do type="prev" name="Back">
	<prev>
		<setvar name="resultval" value="$test"/>
	</prev>
</do>
<p>Select option $optionvalue &nbsp;
<select name="test" ivalue="0" multiple="false">
	<option value="one">one</option>
	<option value="$(optionvalue)">two</option>
	<option value="three">three</option>
</select>
<br/>
Now click Back
</p>
</card>

]]>
    </card>
  </cards>
</test>

