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

<test id="wml2/uabehaviour/formprocessing/forminteraction/textinputcontrol/10" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.3.2" device="both">
	<assertion>When using a text input control, the control is an INPUT 
	element, the TYPE attribute is set to "password", and the value input by 
	the user into the control does not conform to the input mask, the control 
	variable must not be modified.
	</assertion>
	<specnote>Create a card that holds a text input control with the TYPE 
	attribute set to "password" and a format mask. Enter a value that does 
	not conform to the input mask and attempt to commit it. The user agent 
	must display a message that the input doesn't conform, and then 
	re-display the card. The card should also hold a link to another card, 
	so that you can navigate to a second card that will display the control 
	variable, which will show that it has not been modified.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Please enter some letters in the input field
					And then Submit the form
				</p>
				<form action="#card2">
					<fieldset>
						<p>recipient:</p>
						<input type="password" wml:name="recipient" wml:format="NNNN*N" />
					</fieldset>
					<fieldset>
						<input type="submit" value="submit" />
					</fieldset>
				</form>
				<p>Now Go to card2 using this
					<a href="#card2">Link</a>
				</p>
			</wml:card>
			<wml:card id="card2" title="card2">
				<p>This is card 2<br />
					$$recipient = $(recipient)<br />
				</p>
				<p>If you reach this card by entering incorrect letters, the test has failed</p>
				<p>Is the $$recipient variable an empty string?
					<br/>
					[[yesno]]
				</p>
			</wml:card>	
		]]>
	</method>
</test>
