This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7399 - directly validate 404 pages
Summary: directly validate 404 pages
Status: RESOLVED WORKSFORME
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.8.5
Hardware: All All
: P5 enhancement
Target Milestone: 0.8.6
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: http://www.spicy-wolf.org/~404
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-22 03:41 UTC by rimy
Modified: 2009-08-31 21:40 UTC (History)
0 users

See Also:


Attachments

Description rimy 2009-08-22 03:41:43 UTC
hi all,

i had wrote a 404 html page for let visitor 
know the page not found, it's locatated at
http://www.spicy-wolf.org/~404, and actually 
it's a php script, i just use 
> header('HTTP/1.1 404 Not Found');
to let browser and spider knows this a 404 page,
but when i tried to validate that page 
the validator said:

>Sorry! This document can not be checked.
>   1. Error
>      I got the following unexpected response when
>      trying to retrieve <http://www.spicy-wolf.org/~404>:
>          404 Not Found

so i have to let the script send a 200 OK header
i know i also can use direct input or upload, 
and it may not a bug, but i still want to suggest
let's directly validate 404 pages if possible, 
it's a real html page.
Comment 1 Ville Skyttä 2009-08-26 20:07:43 UTC
This feature already exists, click "More options", then tick the "Validate error pages" checkbox.  Or for direct validation URLs, append ";No200=1", for example http://validator.w3.org/check?uri=http://www.spicy-wolf.org/~404;No200=1
Comment 2 rimy 2009-08-27 01:35:14 UTC
oh, thanks, that's my mistake, i havn't noticed that option
could you give a tip when display can't validate error page
i just follow the web developer (a firefox extension)
> Tools -> Validate HTML
now i edit the tools link to enable that option, it works
thanks again!
Comment 3 Ville Skyttä 2009-08-31 21:37:24 UTC
(In reply to comment #2)
> could you give a tip when display can't validate error page

Good idea, implemented for the next validator release; this is how it looks like in the current development version:
http://qa-dev.w3.org/wmvs/HEAD/check?uri=http%3A%2F%2Fwww.spicy-wolf.org%2F~404;No200=1
Comment 4 Ville Skyttä 2009-08-31 21:40:00 UTC
(In reply to comment #3)
> this is how it looks like in the current development version:

Oops, wrong link, it should have been:
http://qa-dev.w3.org/wmvs/HEAD/check?uri=http%3A%2F%2Fwww.spicy-wolf.org%2F~404