<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>20307</bug_id>
          
          <creation_ts>2012-12-08 14:27:22 +0000</creation_ts>
          <short_desc>in HTML should warn when title precedes meta@charset</short_desc>
          <delta_ts>2015-08-23 07:07:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel.S">crazy-daniel</reporter>
          <assigned_to name="Michael[tm] Smith">mike+validator</assigned_to>
          <cc>mike</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>79756</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel.S">crazy-daniel</who>
    <bug_when>2012-12-08 14:27:22 +0000</bug_when>
    <thetext>There should be a warning when a title element precedes the meta@charset element, because the charset information may be ignored (or trigger a re-decoding) if the title element already contains &apos;special&apos; or multibyte characters.

This is a very widespread issue, at least for beginners but often experts as well.

A warning in that case could help educate authors.

Note that validator.nu reports an error for this document:

&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
 &lt;title&gt;äöü&lt;/title&gt;
 &lt;meta charset=&quot;iso-8859-1&quot;&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;äöü&lt;/h1&gt;
&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79757</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-12-08 14:43:00 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Note that validator.nu reports an error for this document:
&gt; 
&gt; &lt;!DOCTYPE html&gt;
&gt; &lt;html&gt;
&gt; &lt;head&gt;
&gt;  &lt;title&gt;äöü&lt;/title&gt;
&gt;  &lt;meta charset=&quot;iso-8859-1&quot;&gt;
&gt; &lt;/head&gt;
&gt; &lt;body&gt;
&gt; &lt;h1&gt;äöü&lt;/h1&gt;
&gt; &lt;/body&gt;
&gt; &lt;/html&gt;

Yeah, if you put validate it by pasting it into the textarea. That&apos;s just because it treats all textarea input as UTF-8. But if you take that same document and instead put it up on the Web and serve it with a iso-8859-1 charset in the content-type header, you won&apos;t get an error (you&apos;ll get a warning but that&apos;s a different story).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79759</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel.S">crazy-daniel</who>
    <bug_when>2012-12-08 15:27:12 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Yeah, if you put validate it by pasting it into the textarea. That&apos;s just
&gt; because it treats all textarea input as UTF-8.

I didn&apos;t do that. Sorry for being ambiguous.

I have created an html document which is iso-8859-1 encoded and used the file upload feature at validator.nu

This results in one warning:
&gt; Warning: Using windows-1252 instead of the declared encoding iso-8859-1.

And one error:
&gt; Error: No explicit character encoding declaration has been seen yet (assumed
&gt; windows-1252) but the document contains non-ASCII.
&gt; &lt;head&gt;↩ &lt;title&gt;äöü&lt;/title&gt;↩ &lt;m

I think this is a useful error that the W3 Validator should report as well.

&gt; But if you take that same document and instead put it up on the Web and
&gt; serve it with a iso-8859-1 charset in the content-type header, you won&apos;t get
&gt; an error (you&apos;ll get a warning but that&apos;s a different story).

I get your point: However, some servers do not send any encoding information at all and there are use cases where a HTTP header is simply not available (local documents for example).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86434</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2013-04-21 01:25:36 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I have created an html document which is iso-8859-1 encoded and used the
&gt; file upload feature at validator.nu
&gt; 
&gt; This results in one warning:
&gt; &gt; Warning: Using windows-1252 instead of the declared encoding iso-8859-1.
&gt; 
&gt; And one error:
&gt; &gt; Error: No explicit character encoding declaration has been seen yet (assumed
&gt; &gt; windows-1252) but the document contains non-ASCII.
&gt; &gt; &lt;head&gt;↩ &lt;title&gt;äöü&lt;/title&gt;↩ &lt;m
&gt; 
&gt; I think this is a useful error that the W3 Validator should report as well.

Please make sure to use http://validator.w3.org/nu/ directly instead of http://validator.w3.org/

There are a number of known issues with the post-processing that http://validator.w3.org does on the output from the HTML5 checker (validator.nu backend). It&apos;s not within my purvey to fix those problems; I can only deal directly with any problems that are reproducible at http://validator.w3.org/nu/

So if you can reproduce this problem at http://validator.w3.org/nu/ please got ahead and reopen this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86450</commentid>
    <comment_count>4</comment_count>
    <who name="Daniel.S">crazy-daniel</who>
    <bug_when>2013-04-21 07:17:30 +0000</bug_when>
    <thetext>Thanks for your reply.

(In reply to comment #3)
&gt; Please make sure to use http://validator.w3.org/nu/ directly instead of
&gt; http://validator.w3.org/

Sorry, I don&apos;t understand. I thought this is the Bugzilla for the W3 service and not for the Nu Validator.

&gt; There are a number of known issues with the post-processing that
&gt; http://validator.w3.org does on the output from the HTML5 checker
&gt; (validator.nu backend). It&apos;s not within my purvey to fix those problems; I
&gt; can only deal directly with any problems that are reproducible at
&gt; http://validator.w3.org/nu/

I didn&apos;t know W3 uses Nu as the backend for HTML5 validation. There doesn&apos;t seem to be an obvious indicator.
Can you please tell me where to report bugs within http://validator.w3.org itself?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86452</commentid>
    <comment_count>5</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2013-04-21 09:22:37 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Thanks for your reply.
&gt; 
&gt; (In reply to comment #3)
&gt; &gt; Please make sure to use http://validator.w3.org/nu/ directly instead of
&gt; &gt; http://validator.w3.org/
&gt; 
&gt; Sorry, I don&apos;t understand. I thought this is the Bugzilla for the W3 service
&gt; and not for the Nu Validator.

http://validator.w3.org/nu/ is the current validator service. It is the only W3C validator service that&apos;s being actively maintained, and that has any new bug fixes going into it. It is called the &quot;W3C Nu Markup Validation Service&quot;.

http://validator.w3.org/ is the legacy validator service. I do not work on the code for that. Nobody does any longer, because it&apos;s not being actively maintained. It has a feature that allows checking of HTML5 documents, but all that feature does is that it calls the http://validator.w3.org/nu/ service behind the scenes.

&gt; 
&gt; &gt; There are a number of known issues with the post-processing that
&gt; &gt; http://validator.w3.org does on the output from the HTML5 checker
&gt; &gt; (validator.nu backend). It&apos;s not within my purvey to fix those problems; I
&gt; &gt; can only deal directly with any problems that are reproducible at
&gt; &gt; http://validator.w3.org/nu/
&gt; 
&gt; I didn&apos;t know W3 uses Nu as the backend for HTML5 validation. There doesn&apos;t
&gt; seem to be an obvious indicator.
&gt; Can you please tell me where to report bugs within http://validator.w3.org
&gt; itself?

If they are errors about how it handles HTML5 documents, nowhere. Because the only service for which HTML5 checking is now supported is http://validator.w3.org/nu/ So if you want to check HTML5 documents, use http://validator.w3.org/nu/ directly. Or even if you want to check HTML4 documents -- it can check those fine too.

Don&apos;t use http://validator.w3.org/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86543</commentid>
    <comment_count>6</comment_count>
    <who name="Daniel.S">crazy-daniel</who>
    <bug_when>2013-04-23 11:50:56 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; http://validator.w3.org/nu/ is the current validator service. It is the only
&gt; W3C validator service that&apos;s being actively maintained, and that has any new
&gt; bug fixes going into it. It is called the &quot;W3C Nu Markup Validation Service&quot;.

Thanks for explaining.

&gt; http://validator.w3.org/ is the legacy validator service. I do not work on
&gt; the code for that. Nobody does any longer, because it&apos;s not being actively
&gt; maintained. It has a feature that allows checking of HTML5 documents, but
&gt; all that feature does is that it calls the http://validator.w3.org/nu/
&gt; service behind the scenes.

I don&apos;t think that there are a lot of people who are actually aware of this.

&gt; If they are errors about how it handles HTML5 documents, nowhere. Because
&gt; the only service for which HTML5 checking is now supported is
&gt; http://validator.w3.org/nu/ So if you want to check HTML5 documents, use
&gt; http://validator.w3.org/nu/ directly. Or even if you want to check HTML4
&gt; documents -- it can check those fine too.
&gt; 
&gt; Don&apos;t use http://validator.w3.org/

I&apos;m a little shocked by the obviousness your statment implies.

This is the first time I hear about this state of http://validator.w3.org/
Please tell me if I&apos;m living in an ivory tower, but I don&apos;t know anyone who&apos;s using http://validator.w3.org/nu/ or even advocate its use (few use validator.nu though).

A lot of questions come to my mind, for example, why is there no public or official note in this? What are the future plans for http://validator.w3.org/? Are there any? I didn&apos;t do an in-depth search, but the impact of this information appears so to be so big that it should be easily discoverable.

Well, I&apos;ll start to use and advocate http://validator.w3.org/nu/ from now on.

If you got any answers for me, it&apos;d be ok to send them to me privately if you feel they don&apos;t belong to this place. Again, thanks for explaining.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86544</commentid>
    <comment_count>7</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2013-04-23 12:15:52 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; Don&apos;t use http://validator.w3.org/
&gt; 
&gt; I&apos;m a little shocked by the obviousness your statement implies.
&gt; 
&gt; This is the first time I hear about this state of http://validator.w3.org/
&gt; Please tell me if I&apos;m living in an ivory tower, but I don&apos;t know anyone
&gt; who&apos;s using http://validator.w3.org/nu/ or even advocate its use (few use
&gt; validator.nu though).

Yeah, we need to do a better job of getting the word out.

&gt; A lot of questions come to my mind, for example, why is there no public or
&gt; official note in this?

Because I&apos;ve not been able to get consensus for some others about it.

&gt; What are the future plans for
&gt; http://validator.w3.org/?

The current validator backend at the URL will eventually be retired and moved to http://validator.w3.org/classic or somewhere. And the validator.nu backend will be moved from http://validator.w3.org/nu/ to replace it and become the new http://validator.w3.org/


&gt; Are there any? I didn&apos;t do an in-depth search, but
&gt; the impact of this information appears so to be so big that it should be
&gt; easily discoverable.

Again, I need to do a better job of getting the word out on this.
 
&gt; Well, I&apos;ll start to use and advocate http://validator.w3.org/nu/ from now on.

Thanks</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>