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

<test id="wml2/uabehaviour/formprocessing/forminitialisation/textinputcontrol/25" 
	class="B" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.2.2" device="both">
	<assertion>When using a text input control, the control is an INPUT 
	element, and neither the WML:NAME or NAME attribute is specified, the 
	control cannot be successful.
	</assertion>
	<notes>Create a card that sets the variable y to "2" on entry, and holds 
	the following form controls:-
&lt;pre&gt;
&amp;lt;form action="..."&gt;&lt;br />
&amp;nbsp;&amp;nbsp;&amp;lt;input name="x" value="1" /&gt;&lt;br />
&amp;nbsp;&amp;nbsp;&amp;lt;input wml:name="y" /&gt;&lt;br />
&amp;nbsp;&amp;nbsp;&amp;lt;input value="3" /&gt;&lt;br />
&amp;nbsp;&amp;nbsp;&amp;lt;input type="submit" value="submit" /&gt;&lt;br />
&amp;lt;/form&gt;
&lt;/pre>
	The VALUE attribute for the control with no WML:NAME or NAME attribute must 
	be set. Call the card, submit the data, and make sure the submitted data set 
	holds the values "x=1&amp;y=2"(i.e. the final control, which was not 
	successful, was excluded).
	</notes>
	<specnote>Untestable as it's not defined how handling an unsuccessfull 
	text input control with neither WML:NAME or NAME attribute specified.
	</specnote>
  <results>
    <result>
      <name>submit</name>
      <value>yes</value>
    </result>
  </results>
  <method>
		<![CDATA[
			<wml:card id="main" title="main">
				<p>Please note the controls values and press submit.</p>
				<form action="#test_values.pl" method="post">
					control X:
<input wml:name="x" value="1"><br />
      control Y:
      <input wml:name="y" value="2"><br />
      control UNSET:
      <input value="3"><br />
      <input type=submit value="submit"><br />
      <input type=reset><br />
    </form>
  <p>Were there only values for controls &apos;X&apos; &amp; &apos;Y&apos; sent to the server?
    <br />
[[yesno]]
  </p>
</wml:card>
]]>
  </method>
</test>

