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

  $Author: richard $

  $Revision: 1.8 $

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

  Revision 1.7  2002/04/25 10:17:44  richard
  add an extra / at the end of the wml:go element

  Revision 1.6  2002/04/23 08:16:00  richard
  missing 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/9" 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 no matching card ID attribute, 
  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 a link with an ID set to a non-existent card in the current page. 
  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="false">
        <head>
            <title>go task 9</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="#card1" />
  		        </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="card1" title="second">
    				<p>This is card1</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>

