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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>25107</bug_id>
          
          <creation_ts>2009-04-08 21:03:45 -0700</creation_ts>
          <short_desc>Should be generous in parsing meta charset</short_desc>
          <delta_ts>2009-04-10 01:28:22 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>18692</dup_id>
          
          <bug_file_loc>http://www.jb51.net/article/10985.htm</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>xlyuan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>jshin</cc>
    
    <cc>mal</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>116985</commentid>
    <comment_count>0</comment_count>
    <who name="">xlyuan</who>
    <bug_when>2009-04-08 21:03:45 -0700</bug_when>
    <thetext>Build: WebKit-r42232 (2009-04-07)
   OS: Windows, not test on Mac

Other Browsers:
Chromium: Fail
Firefox3: OK
     IE7: OK

Steps:
1. Launch Safari
2. Open attached test file or go to http://www.jb51.net/article/10985.htm
3. Observe

Result:
Text is garbled, please note that the meta tag has an extra quotation mark
before gb2312

&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=&quot;gb2312&quot; /&gt;

Expected:
Show text correctly

Notes:
This is also tracked in Chromium as crbug.com/7158</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116986</commentid>
    <comment_count>1</comment_count>
      <attachid>29356</attachid>
    <who name="">xlyuan</who>
    <bug_when>2009-04-08 21:05:25 -0700</bug_when>
    <thetext>Created attachment 29356
Attaching test file</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117001</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-04-09 01:48:29 -0700</bug_when>
    <thetext>This should be covered by HTML5&apos;s parser.  We should follow whatever HTML5 says to do here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117135</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-04-10 01:28:22 -0700</bug_when>
    <thetext>This is exactly the same case as in bug 18692.

*** This bug has been marked as a duplicate of 18692 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>29356</attachid>
            <date>2009-04-08 21:05:25 -0700</date>
            <delta_ts>2009-04-08 21:05:25 -0700</delta_ts>
            <desc>Attaching test file</desc>
            <filename>Be_Generous_to_Meta_Charset.html</filename>
            <type>text/html</type>
            <size>399</size>
            <attacher>xlyuan</attacher>
            
              <data encoding="base64">PGh0bWw+DQo8aGVhZD4NCjxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0i
dGV4dC9odG1sOyBjaGFyc2V0PSJnYjIzMTIiIC8+DQo8L2hlYWQ+DQo8Ym9keT4NCqGwztLO3sLb
ysfU2rzSv7TK6bu5ysfJz834o6zJ7bHfv8+2qLvh09DSu9a7ubejrNK71rvQocTx1NrO0sntsd+1
xH5+uNC+9brD0NK4o7Cho6GhsbrHusejrNXiuPYitqG2oSKyu9PDwPrP1bXEo6zWu8rH1Nq80sDv
tcSz+Le/tbe5xMPAyrOjrLrNxMe49iK2obahItK70fnSstPQ0rvWu7CuyK7P4LDpoaMitqG2oSK8
0rXEw8DKs7K7zNix8KOsyLS63LXYtcCjrLXYtcC1xLnj1t3OtrXAo6zEx8O0tcTH18fQus3Owtyw
o6FbytWy2M340tfFrsjLxrW1wKOsxtq0/c/CvK++q7LKs/jE76OhDQo8L2JvZHk+DQo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>