W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2008

[Bug 6091] New: Using the 'accept=' url append option returns invalid reusable link.

From: <bugzilla@wiggum.w3.org>
Date: Wed, 17 Sep 2008 22:32:28 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-6091-169@http.www.w3.org/Bugs/Public/>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6091

           Summary: Using the 'accept=' url append option returns invalid
                    reusable link.
           Product: Validator
           Version: HEAD
          Platform: PC
               URL: http://wolflinux.homelinux.org/bug/
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Website
        AssignedTo: dave.null@w3.org
        ReportedBy: taylor.gresser@gmail.com
         QAContact: www-validator-cvs@w3.org


In short, the "Linking to this result" for my php/xhtml code should return:
http://validator.w3.org/check?uri=http%3A%2F%2Fwolflinux.homelinux.org%2Fbug%2F&accept=application%2Fxhtml%2Bxml;
but instead returns:
http://validator.w3.org/check?uri=http%3A%2F%2Fwolflinux.homelinux.org%2Fbug%2Faccept=application%2Fxhtml%2Bxml;
(missing an '&' before "accept=")

Long version:
I use the following code at the top of each page on my site:

<?php
if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")){
        header("Content-Type: application/xhtml+xml; charset=UTF-8");
        echo('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">');
} else {
        header("Content-Type: text/html; charset=UTF-8");
        echo ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');
}
?>

This requires me to append "&accept=application%2Fxhtml%2Bxml" to the end of
the normal validation string when I want to test xhtml 1.1 validation, and I
can leave it off to test xhtml 1.0 strict.

When the validation completes, it returns a link in the "Linking to this
result" section to allow easy re-validation. This link leaves out the '&'
character, resulting in it attempting to validate the page
"http://wolflinux.homelinux.org/bug/accept=application%2Fxhtml%2Bxml", which
does not exist.

I'm filing this report on the assumption that this is not the desired behavior.
If it is, my apologies.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 17 September 2008 22:33:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:05 GMT