<?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>7135</bug_id>
          
          <creation_ts>2009-07-24 00:39:46 +0000</creation_ts>
          <short_desc>fix HTML5 facet so that it doesn&apos;t incorrectly warn &quot;No Character Encoding Found&quot;</short_desc>
          <delta_ts>2015-08-23 07:07:29 +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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5992</dup_id>
          
          <bug_file_loc>http://validator.w3.org/check?uri=http://www.annmanor.ca/news.shtml&amp;charset=(detect+automatically)&amp;doctype=Inline&amp;group=0</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="Michael[tm] Smith">mike</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <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>26055</commentid>
    <comment_count>0</comment_count>
      <attachid>732</attachid>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2009-07-24 00:39:46 +0000</bug_when>
    <thetext>Created attachment 732
patch with proposed changes

see http://lists.w3.org/Archives/Public/www-validator/2009Jul/0034.html
and http://www.annmanor.ca/news.shtml

that page contains the element &lt;meta charset=&quot;utf-8&quot; /&gt; , which is a conformant character-encoding declaration in HTML5. So the HTML5 facet should not emit a  &quot;No Character Encoding Found&quot; warning.

for a proposed fix, see the attached patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27421</commentid>
    <comment_count>1</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2009-09-21 18:56:01 +0000</bug_when>
    <thetext>Unfortunately the patch is not correct for two reasons:

1) It would only affect scenarios where a charset override (&quot;hard&quot; or &quot;fallback&quot;) is present, and

2) $File-&gt;{DOCTYPE} will always be undefined at that point because no attempt to parse the doctype has been made yet.

We already have bug 5992 tracking this issue, so I&apos;m marking this one as its duplicate.

*** This bug has been marked as a duplicate of bug 5992 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>732</attachid>
            <date>2009-07-24 00:39:46 +0000</date>
            <delta_ts>2009-07-24 00:39:46 +0000</delta_ts>
            <desc>patch with proposed changes</desc>
            <filename>patch.html5.encoding.smith.1</filename>
            <type>text/plain</type>
            <size>1294</size>
            <attacher name="Michael[tm] Smith">mike</attacher>
            
              <data encoding="base64">SW5kZXg6IC4vaHR0cGQvY2dpLWJpbi9jaGVjawo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvc291cmNl
cy9wdWJsaWMvdmFsaWRhdG9yL2h0dHBkL2NnaS1iaW4vY2hlY2ssdgpyZXRyaWV2aW5nIHJldmlz
aW9uIDEuNjczCmRpZmYgLXUgLXIxLjY3MyBjaGVjawotLS0gLi9odHRwZC9jZ2ktYmluL2NoZWNr
CTMwIEp1biAyMDA5IDE4OjQ5OjA3IC0wMDAwCTEuNjczCisrKyAuL2h0dHBkL2NnaS1iaW4vY2hl
Y2sJMjQgSnVsIDIwMDkgMDA6Mzc6MTYgLTAwMDAKQEAgLTUzNCwxNCArNTM0LDE0IEBACiAgIG15
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