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

<test id="wml2/uabehaviour/formprocessing/forminteraction/textinputcontrol/9" 
	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 user 
	agent must not commit that input and must notify the user that the input 
	was rejected, and allow the user to re-submit new input.
	</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, allowing the user to re-enter the data.
	</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>input:</p>
						<input type="password" wml:name="x" wml:format="NNNN*N" />
					</fieldset>
					<fieldset>
						<input type="submit" value="submit" />
					</fieldset>
				</form>
				<p>Did the user agent inform you that your input was incorrect 
					and allow you to try again?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
			<wml:card id="card2" title="card2">
				<p>This is card 2</p>
				<p>If you reach this card by entering incorrect letters, the test has failed</p>
				[[auto_failed]]
			</wml:card>	
		]]>
	</method>
</test>
