<?xml version="1.0" encoding="UTF-8"?>
<test id="wml/struct/control/select/element/iname/4" class="A" scope="wml" testtype="application" type="manual" source="wml13#11.6.2.1" device="both">
  <assertion>When the INAME attribute of the SELECT element is set to a string, it
defines the name of a variable in which to record the user's selection(s).
If the variable named by the INAME attribute is set when the element is
displayed, the value of the variable is used as indices to pre-select option(s) within
the SELECT element.
</assertion>
  <results>
    <result>
      <name>submit</name>
      <value>yes</value>
    </result>
    <result>
      <name>test</name>
      <value>1;2</value>
    </result>
  </results>
  <method>
    <![CDATA[<card newcontext="true" id="main">
<onevent type="onenterforward">
<go href="#card1">
<setvar name="test" value="1;2"/>
</go>
</onevent>
<auto_failed>
</card>]]>
  </method>
  <cards>
    <card id="1">
      <![CDATA[<card id="card1">
<p>Items 1 and 2 are selected:
<select iname="test" multiple="true">
<option value="one">1</option>
<option value="two">2</option>
<option value="three">3</option>
</select>
! DO NOT deselect items 1 and 2 before leaving the test
</p>
<p>Are items 1 and 2 selected?
<yesno>
</p>
</card>
]]>
    </card>
  </cards>
</test>

