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 924 - Html comment before <html> tag
Summary: Html comment before <html> tag
Status: RESOLVED DUPLICATE of bug 838
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.6.7
Hardware: Other other
: P2 blocker
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-25 15:12 UTC by Susanna Sudati
Modified: 2004-11-28 16:06 UTC (History)
0 users

See Also:


Attachments

Description Susanna Sudati 2004-10-25 15:12:05 UTC
We are developing on SABA platform and we have extended comments before <html>
tag. We suppose that there is a limited buffer in validator which stores these
comments.
I send you two code cases the first is ok and doesn't generate validator
trouble, the secod case is ko. The only difference between the two cases are the
comment length.

First case (ok):

<!-- Page name: /ems/knowres/corsi_areeTematiche.saba aaaaaaaaaa aaaaaaaaa
aaaaaaaaaa aaaaaaaaa  -->
<!-- Page name: /ems/knowres/corsi_areeTematiche.saba aaaaaaaaaaaaaaaaaaaaaaa  
            -->
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
	<title>Trio - Catalogo Corsi di Formazione a Distanza Gratuiti</title>
	<meta name="Description" content="Nel catalogo TRIO dei corsi di autoformazione
gratuiti trovi corsi di restauro metalli e tessuti, agricoltura biologica e
allevamento, impiantistica e conduzione macchine, sartoria, apprendistato e
obbligo formativo, inglese, word e informatica per imparare a distanza la
materia di tuo interesse.">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" href="/wProgettoTrio/css/stili_nuovi.css" type="text/css">
<BODY>
</BODY>
</HTML>


Second case (ko):

<!-- Page name: /ems/knowres/corsi_areeTematiche.saba aaaaaaaaaa aaaaaaaaa
aaaaaaaaaa aaaaaaaaa  -->
<!-- Page name: /ems/knowres/corsi_areeTematiche.saba aaaaaaaaaaaaaaaaaaaaaaa  
                 -->
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
	<title>Trio - Catalogo Corsi di Formazione a Distanza Gratuiti</title>
	<meta name="Description" content="Nel catalogo TRIO dei corsi di autoformazione
gratuiti trovi corsi di restauro metalli e tessuti, agricoltura biologica e
allevamento, impiantistica e conduzione macchine, sartoria, apprendistato e
obbligo formativo, inglese, word e informatica per imparare a distanza la
materia di tuo interesse.">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" href="/wProgettoTrio/css/stili_nuovi.css" type="text/css">
<BODY>
</BODY>
</HTML>

------------------------------------------------------------------------------
In this second case the W3C on line Validator result is this error:

Sorry, I am unable to validate this document because its content type is
text/plain, which is not currently supported by this service. 

The Content-Type field is sent by your web server (or web browser if you use the
file upload interface) and depends on its configuration. Commonly, web servers
will have a mapping of filename extensions (such as ".html") to MIME
Content-Type values (such as text/html). 

That you recieved this message can mean that your server is not configured
correctly, that your file does not have the correct filename extension, or that
you are attempting to validate a file type that we do not support yet. In the
latter case you should let us know that you need us to support that content type
(please include all relevant details, including the URL to the standards
document defining the content type) using the instructions on the Feedback Page. 

------------------------------------------------------------------------------

This bug is critical for us because we can't validate our html code.
Best Regards.

Susanna Sudati
Comment 1 Olivier Thereaux 2004-11-15 02:11:53 UTC
I can not reproduce the bug you are mentioning here. I have saved the examples you provide and sent 
them to the validator, without any kind of issue. 

The error message you quote 
[[ Sorry, I am unable to validate this document because its content type is
text/plain, which is not currently supported by this service. ]] 
means that the document is not properly served by the server, or that the browser sending it (when 
validating through file upload) sent it in a wrong manner.

Could you clarify:
- whether you still experience this issue
- if "yes", which way you are validating (giving the validator a URI or file upload)
- if validating by URI, please specify the address for a test document if possible
- if validating by upload, specify which browser on which platform

There are several issues with some versions of Internet Explorer making it misbehave with file upload, 
which I guess may be the reason for the problem you are experiencing, but I need more details to be 
sure  of it.
Comment 2 Susanna Sudati 2004-11-23 10:12:14 UTC
Thanks for your help. 
I solved the issue. You are rigth: the reason for the problem is the file
uploading with Internet Explorer 6. I try to validate the same html file using
other browsers (Nescape 6, Mozilla 1.3.1,Opera)and there is no problem.
I advise you to add a note on your Html Validator site to warm users for this
problem. I think it is helpful.
Comment 3 Terje Bless 2004-11-28 16:06:24 UTC

*** This bug has been marked as a duplicate of 838 ***