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

<test id="wml2/uabehaviour/formprocessing/forminitialisation/textinputcontrol/24" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.2.2" device="both">
  <assertion>When using a text input control, the control is a TEXTAREA element,
  and both the WML:NAME and NAME attributes are assigned, the WML:NAME attribute
  takes precedence, and the NAME attribute must be ignored.
  </assertion>
  <specnote>Create a card that holds a text area control. Assign the WML:NAME 
  and NAME attributes. Display the card and make sure that the initial value 
  displayed is the value of the variable named by the WML:NAME attribute.
  </specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<wml:onevent type="enterforward">
					<wml:go href="#card2">
						<wml:setvar name="recipient" value="toto" />
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2" title="card2">
				<p>please submit the form without writing anything
					<form action="#card3">
						<fieldset>
							<p>input:</p>
							<textarea wml:name="recipient" name="ghost" rows="10" cols="10">WRONG</textarea>
						</fieldset>
						<fieldset>
							<input type="submit" value="submit" />
							<input type="reset" value="reset" />
						</fieldset>
					</form>
				</p>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card3" title="card3">
				<p>This is card 3<br />
					wml:name=$$recipient value=$recipient<br />
					name=$$ghost value=$ghost<br />
				</p>
				<p>Is the value of the control $$recipient &quot;toto&quot; and the value
					of $$ghost an empty string?
					<br />
					[[yesno]]
				</p>
			</wml:card>
		]]>
	</method>
</test>
