<?xml version="1.0" encoding="UTF-8"?>
<test id="wcss/input/required/emptyok/1" class="C" scope="wcss:input" 
	testtype="application" type="manual" source="wcss#19.3.2" device="both">
	<assertion>When the WML 'emptyok' attribute is present on an element
	it must be translated into the -wap-input-required rule with 
	specificity equal to zero
	</assertion>
	<specnote>Manual test Display a WML document with a stylesheet
	in which the the EMPTYOK attribute of its INPUT element is set to 
	'true' and the 'wap-input-required' is set to true for the same 
	INPUT element and then confirm with the user that an input had to supplied.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<stylesheets>
		<stylesheet id="1">
			<![CDATA[
				input.ric { -wap-input-required: true }
			]]>
		</stylesheet>
	</stylesheets>
	<method>
		<![CDATA[
			<wml:card newcontext="true" id="main" title="main">
				<p>Let the input Empty and submit the form</p>
				<form action="#card1">
					<fieldset>
						<p>recipient:</p>
						<input class="ric" emptyok="true" name="test"/>
					</fieldset>
					<fieldset>
						<input type="submit" value="submit" />
						<input type="reset" value="reset" />
					</fieldset>
				</form>
				<p class="og">Did the user agent NOT permit the input field to be empty? 
					<br/>
					[[yesno]]
				</p>
			</wml:card>

			<wml:card id="card1">
				<p>card1</p>
				<p>If you reach this card the test has failed<br/>
					Please go back to the previous card
				</p>
				<wml:do role="back">
					<wml:prev/>
				</wml:do>
			</wml:card>
		]]>
	</method>
</test>
