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

<test id="wcss/input/required/format/4" class="C" scope="wcss:input" 
	testtype="application" type="manual" source="wcss#19.3.1" device="both">
	<assertion>When the -wap-input-required property of the input element is 
	set to 'false' and the wap-input-format property of the input element 
	does not allow a zero-length string (e.g; M*M), the zero-length string 
	is allowed (e.g. *M).
	</assertion>
	<specnote>Display a wml document with a style sheet, having an
	input element and set the -wap-input-required to 'false' and the 
	-wap-input-format to a mask which does not allow empty values (e.g. M*M). 
	Prompt the user to leave it blank and make sure that the empty value
	is accepted.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<stylesheets>
		<stylesheet id="1">
			<![CDATA[
				input.ric { -wap-input-required: false;
								-wap-input-format: "M*M" }
			]]>
		</stylesheet>
	</stylesheets>
	<method>
		<![CDATA[
			<wml:card newcontext="true" id="main" title="main">
				<p>Let the input Empty and submit the form</p>
				<p>
					<form action="#card1">
						<fieldset>
							<p>recipient:</p>
							<input class="ric" type="text" name="recipient"/>
						</fieldset>
						<fieldset>
							<input type="submit" value="submit"/>
							<input type="reset" value="reset"/>
						</fieldset>
					</form>
				</p>
				<p class="og">
					Did the user agent permit the input field to be empty?
					<br/>
					[[yesno]]
				</p>
			</wml:card>

			<wml:card id="card1">
				<p>card1</p>
				<p>Please go back to the previous card</p>
				<wml:do role="back">
					<wml:prev/>
				</wml:do>
			</wml:card>
		]]>
	</method>
</test>
