2008/link-testsuite base-5.php,NONE,1.1

Update of /sources/public/2008/link-testsuite
In directory hutz:/tmp/cvs-serv19999

Added Files:
	base-5.php 
Log Message:
Add Content-Base test case.

--- NEW FILE: base-5.php ---
<?php header("Content-Base: http://www.w3.org/QA/Tools/");?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Link Checker Test - base-5</title>
	<base href="http://qa-dev.w3.org/link-testsuite/trap/">
</head>
<body>
<div id="test">
    <p> <span id="test-id">base-5</span>: 
        test for base URI with Content-Base HTTP Header. The document has a relative link. 
        HREF of the link should be calculated with the BASE URI from the doc considered.
    </p>
    <p id="expected" class="200 OK">EXPECTED: 
        200 OK. The BASE href has precedence over the other mechanisms.
        If the Content-Base is followed, the link checker would find a 404. This is incorrect.
        If the current URI of the document is taken as a base, 
        the link checker would find a 403. This is incorrect.
    </p>
</div>
<p><a href="http.php?code=403">this should return a 200 OK</a></p>
</body>
</html>

Received on Thursday, 11 March 2010 20:10:11 UTC