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

<test id="wml2/uabehaviour/formprocessing/forminitialisation/textinputcontrol/33"
	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 an INPUT 
	element, the TYPE attribute is set to "password", the WML:NAME attribute is 
	assigned, and the value of the form control variable and the VALUE 
	attribute do not conform to the input mask, they must be ignored and the 
	initial value of the control must be set to an empty string.
	</assertion>
	<specnote>Create a card that holds a text input control with the TYPE 
	attribute set to "password" and an input mask. Pre-set the WML:NAME 
	attribute to the name of a variable whose value doesn't conform the input 
	mask. Also set the VALUE attribute to a value that does not conform to 
	the input mask. When the card is loaded, make sure that the initial value 
	of the text box is set to an empty string.
	</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="xname" value="1234" />
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2" title="card2">
				<p>Please submit the form without changing anything
					<form action="#card3">
						<fieldset>
							<p>input:</p>
							<input type="password" wml:name="xname" value="4321" wml:format="*a" />
						</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=$$xname value=$xname <br />
				</p>
				<p>Is the value displayed in the form control $$xname an empty string?
					<br />
					[[yesno]]
				</p>
			</wml:card>
		]]>
	</method>
</test>
