<?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>23684</bug_id>
          
          <creation_ts>2013-10-30 19:19:17 +0000</creation_ts>
          <short_desc>charset attribute of &lt;link rel=stylesheet&gt; is still used in implementations</short_desc>
          <delta_ts>2014-01-13 23:13:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>CSSOM</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          <dependson>14703</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Sapin">simon.sapin</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>95571</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Sapin">simon.sapin</who>
    <bug_when>2013-10-30 19:19:17 +0000</bug_when>
    <thetext>The charset attribute of the link element is marked as obsolete, but in practice implementations do use it to determine the encoding of a stylesheet.

See also https://www.w3.org/Bugs/Public/show_bug.cgi?id=14703#c20 about defining in the HTML spec how that attribute and the encoding of the document participate in determining the encoding of a stylesheet.


Test case:

data:text/html;charset=latin2,&lt;link%20rel=stylesheet%20href=http://test.csswg.org/suites/css2.1/20110323/html4/support/none.css&gt;&lt;span%20class=&amp;%23258;&amp;%23733;&amp;%23258;&amp;%23164;&amp;%23258;&amp;%23168&gt;Test

(The above misinterprets a stylesheet as ISO-8859-2, with a class name 
set to the corresponding mojibake. Green means that the HTML document’s 
encoding is used for CSS.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98366</commentid>
    <comment_count>1</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-01-13 23:13:08 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8391.
Check-in comment: Define how &lt;link charset&gt; works.
http://html5.org/tools/web-apps-tracker?from=8390&amp;to=8391</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>