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

  $Author: richard $

  $Revision: 1.10 $

  $Log: 10,v $
  Revision 1.10  2002/06/16 10:06:53  richard
  remove the body element

  Revision 1.9  2002/04/23 10:54:02  richard
  end element of the wml:card, missing /

  Revision 1.8  2002/04/23 08:16:00  richard
  missing the end /

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

  Revision 1.6  2002/04/17 13:32:11  ajmc
  Removed second </test>

  Revision 1.5  2002/03/26 09:12:18  richard
  start wml:card extra /
  includes external decks

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

  Revision 1.3  2001/10/30 16:22:46  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:26  gb
  Added the standard header of Author, Revision and Log at the top of each template file.


-->
<test id="wml2/uabehaviour/navigationreference/gotask/10" class="A" scope="wml2"
	testtype="application" type="manual" source="wml2#5.3.1" device="both">
  <assertion>When the WML:GO task is executed, and the WML:USE-XML-FRAGMENTS 
  attribute is 'false', and the document contains non-card element ID "x", the 
  fragment identifier of the target URI must be the first card in that document.
  </assertion>
  <specnote>Create a document with the WML:USE-XML-FRAGMENTS attribute set to 'false', 
  and call the card using a URL with a fragment identifier set to a non-card elements 
  ID in the document called. Call the document an make sure you are taken to the
  first card in that document.
  </specnote>
  <results>
    <result>
      <name>submit</name>
      <value>yes</value>
    </result>
  </results>
  <method>
		<![CDATA[
    	<wml:card newcontext="true" id="main">
        <p>Click this &nbsp;
          <wml:anchor>
          	Link&nbsp;
            <wml:go href="[[page1]]#test" />
          </wml:anchor>
          to go to next card, then return here.<br />
        </p>
        <p>When pressing the link were you taken to the first card in the document?
        			<br/>
					[[yesno]]
				</p>
    	</wml:card>
		]]>
  </method>
	<pages>
		<page id="1">
			<![CDATA[
				<?xml version="1.0" encoding="UTF-8"?>
				<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD WML 2.0//EN" "http://www.wapforum.org/wml20.dtd">
				<html xmlns="http://www.w3.org/1999/xhtml"
					xmlns:wml="http://www.wapforum.org/2001/wml"
					wml:use-xml-fragments="false">
					<head>
						<title>Gotask 10</title>
					</head>
 						<wml:card id="card1" title="main" newcontext="true">
            <wml:do type="prev">
                <wml:prev />
            </wml:do>
            <p>
                This is the first card in the document<br />
                Now go back.
            </p>
        </wml:card>
        <wml:card id="card2" title="second">
            <wml:do type="prev">
                <wml:prev />
            </wml:do>
            <p id="test">
                test failed, now go back
            </p>
        </wml:card>
				</html>
			]]>
		</page>
	</pages>
</test>
