<?xml version="1.0" encoding="UTF-8"?>
<test id="wml/struct/control/input/value/1" class="A" scope="wml" testtype="application" type="manual" source="wml13#11.6.3" device="both">
  <assertion>When the VALUE attribute of the INPUT element is specified, it
defines the default value for the variable named by the NAME attribute. When
the INPUT element is displayed and the variable named by the NAME attribute is
not set, that variable is initialized with the value of the VALUE attribute.
</assertion>
  <results>
    <result>
      <name>test</name>
      <value>pass</value>
    </result>
  </results>
  <strings>
    <string id="1">startvalue
</string>
  </strings>
  <method>
    <![CDATA[<card newcontext="true" id="main"> <p>Initial value is "<string1>":
<input type="text" value="<string1>" name="test"/>
</p>
<p>Select this&nbsp;<anchor>
<go href="<script1>#main('test','card1','<string1>')">
</go>
link</anchor>&nbsp;to complete the test.</p>
<auto_failed>
</card>]]>
  </method>
  <cards>
    <card id="1">
      <![CDATA[<card id="card1">
<onevent type="onenterforward">
<go href="<resulturl>">
<postfield name="test" value="$test" />
<sessionvars>
</go>
</onevent>
<auto_failed>
</card>
]]>
    </card>
  </cards>
  <scripts>
    <script id="1">
      <![CDATA[extern function main(myvar, next, input) {
	var result = 'fail';
	var compare = '<string1>';
	var myvalue = WMLBrowser.getVar(myvar);

	if (myvalue == compare) {
		result = 'pass';
	}
	WMLBrowser.setVar(myvar, result);
	WMLBrowser.go('#' + next);
	return 1;
}
]]>
    </script>
  </scripts>
</test>

