W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2010

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

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 11 Mar 2010 20:10:10 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Npohu-0005D7-FL@lionel-hutz.w3.org>
Update of /sources/public/2008/link-testsuite
In directory hutz:/tmp/cvs-serv19999

Added Files:
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">
	<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/">
<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 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><a href="http.php?code=403">this should return a 200 OK</a></p>
Received on Thursday, 11 March 2010 20:10:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:42 UTC