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

	$Author: richard $

	$Revision: 1.9 $

	$Log: 7,v $
	Revision 1.9  2002/06/18 14:07:19  richard
	rename in card2 to be mors dubvious
	
	Revision 1.8  2002/06/16 10:06:52  richard
	remove the body element

	Revision 1.7  2002/04/25 10:27:33  richard
	missing a / at the end of the wml:go element

	Revision 1.6  2002/04/23 08:09:54  richard
	miss the end /

	Revision 1.5  2002/04/20 08:54:02  richard
	yesno

	Revision 1.4  2002/02/26 13:55:32  richard
	rewrite the tests

	Revision 1.3  2001/10/30 16:22:48  gb
	Modified all the test files in the wml2 directory such that it puts the <?xml?> declaration back at the top of the file, before the comment.

	Revision 1.2  2001/10/08 21:56:27  gb
	Added the standard header of Author, Revision and Log at the top of each template file.


-->
<test id="wml2/uabehaviour/navigationreference/gotask/7" class="A" 
	scope="wml2" testtype="application" type="manual" source="wml2#5.3.1" 
	device="both">
	<assertion>When the WML:GO task is executed(to navigate to a card in the 
	same document), and the WML:USE-XML-FRAGMENTS attribute is 'true', and 
	the document contains no matching element ID attribute, the fragment 
	identifier of the target URI must be the first card in that document.
	</assertion>
	<specnote>Create a document with a link to another card in the current 
	document. The link 'id' must not match that of any element 'id' in the 
	document. Click the anchor an make sure you are taken to the first card 
	in the document.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<html xmlns="http://www.w3.org/1999/xhtml"
						xmlns:wml="http://www.wapforum.org/2001/wml"
						wml:use-xml-fragments="true">
				<head>
						<title>go task 7</title>
				</head>
				<wml:card id="main" newcontext="true" title="first card">
					<p>First Card</p>
					<p>Click this &nbsp;
						<wml:anchor>
							Link&nbsp;
							<wml:go href="#card2" />
						</wml:anchor>
						to go to second card.<br />
					</p>
					<p>When clicking on the link of the card1, have you come back directly to its card ?
						<br/>
						[[yesno]]
					</p>
				</wml:card>
				<wml:card id="card2" title="second">
					<p>This is card2</p>
					<p>Click this &nbsp;
						<wml:anchor>
							Link&nbsp;
							<wml:go href="#none_exist" />
						</wml:anchor>
						&nbsp and make sure you are taken back to the first card<br />
					</p>
					<p id="pass">PASSED</p>
					<p id="fail">FAIL</p>
				</wml:card>
		</html>
		]]>
	</method>
</test>
