<?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>10805</bug_id>
          
          <creation_ts>2010-09-29 11:36:18 +0000</creation_ts>
          <short_desc>treating single quotes as double quotes not needed for compatibility with existing content</short_desc>
          <delta_ts>2011-04-08 22:12:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/spec/Overview.html#content-type-sniffing</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NE, WGDecision</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>10804</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Julian Reschke">julian.reschke</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>rubys</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39928</commentid>
    <comment_count>0</comment_count>
      <attachid>916</attachid>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2010-09-29 11:36:18 +0000</bug_when>
    <thetext>Created attachment 916
test case for charset in single quotes

&lt;http://dev.w3.org/html5/spec/Overview.html#content-type-sniffing&gt;:

&quot;Process the next character as follows:

If it is a U+0022 QUOTATION MARK (&apos;&quot;&apos;) and there is a later U+0022 QUOTATION MARK (&apos;&quot;&apos;) in s
If it is a U+0027 APOSTROPHE (&quot;&apos;&quot;) and there is a later U+0027 APOSTROPHE (&quot;&apos;&quot;) in s
    Return the encoding corresponding to the string between this character and the next earliest occurrence of this character.&quot;

This is indeed a violation of the Content-Type syntax defined in RFC 2616, in treating single quotes as allowed quoting characters.

The spec claims that this is required for &quot;backwards compatibility with legacy content&quot;.

I&apos;m attaching a test case that shows that the following browsers do *not* treat single quotes as defined by the spec:

IE6, IE8, IE9beta, Konqueror 4.4

Please remove the requirement.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39934</commentid>
    <comment_count>1</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2010-09-29 12:10:37 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; I&apos;m attaching a test case that shows that the following browsers do *not* treat
&gt; single quotes as defined by the spec:
&gt; 
&gt; IE6, IE8, IE9beta, Konqueror 4.4

(IE7 not tested)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40043</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-09-30 03:01:32 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: Gecko, Opera, and WebKit all do this. If you want the spec to say something else, get them to change their browsers first.

http://www.hixie.ch/tests/adhoc/html/parsing/encoding/075.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40065</commentid>
    <comment_count>3</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2010-09-30 07:36:18 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are
&gt; satisfied with this response, please change the state of this bug to CLOSED. If
&gt; you have additional information and would like the editor to reconsider, please
&gt; reopen this bug. If you would like to escalate the issue to the full HTML
&gt; Working Group, please add the TrackerRequest keyword to this bug, and suggest
&gt; title and text for the tracker issue; or you may create a tracker issue
&gt; yourself, if you are able to do so. For more details, see this document:
&gt;    http://dev.w3.org/html5/decision-policy/decision-policy.html
&gt; 
&gt; Status: Rejected
&gt; Change Description: no spec change
&gt; Rationale: Gecko, Opera, and WebKit all do this. If you want the spec to say
&gt; something else, get them to change their browsers first.
&gt; 
&gt; http://www.hixie.ch/tests/adhoc/html/parsing/encoding/075.html

Microsoft and KDE do it right. If you think the spec needs to overrule the base spec, please convince KDE and Microsoft to change their implementations.

Will raise as tracker issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40139</commentid>
    <comment_count>4</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2010-09-30 11:35:29 +0000</bug_when>
    <thetext>Now raised as

  http://www.w3.org/html/wg/tracker/issues/125</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46718</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2011-03-15 15:35:40 +0000</bug_when>
    <thetext>Working Group Decision: http://lists.w3.org/Archives/Public/public-html/2011Mar/0304.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46746</commentid>
    <comment_count>6</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2011-03-16 12:56:35 +0000</bug_when>
    <thetext>Please consider moving the text in question into a separate subsection; see proposal in &lt;http://lists.w3.org/Archives/Public/public-html/2011Mar/0327.html&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47289</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-04-08 22:12:18 +0000</bug_when>
    <thetext>I assume comment 5 is asking for this change: &quot;Instead of saying this is a willful violation of HTTP say this is a distinct algorithm from HTTP Content-Type processing for usage outside of HTTP.&quot;

I applied comment 5 and comment 6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47290</commentid>
    <comment_count>8</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-04-08 22:12:33 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5979.
Check-in comment: apply wg decision
http://html5.org/tools/web-apps-tracker?from=5978&amp;to=5979</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>916</attachid>
            <date>2010-09-29 11:36:18 +0000</date>
            <delta_ts>2010-09-29 11:36:18 +0000</delta_ts>
            <desc>test case for charset in single quotes</desc>
            <filename>enctest1.html</filename>
            <type>text/html</type>
            <size>2469</size>
            <attacher name="Julian Reschke">julian.reschke</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUw+DQo8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9
InRleHQvaHRtbDsgY2hhcnNldD0nVVRGLTgnIj4NCjxwPlRlc3Q6DQo8cHJlPiZsdDshRE9DVFlQ
RSBIVE1MPg0KJmx0O21ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0
L2h0bWw7IGNoYXJzZXQ9J1VURi04JyI+PC9wcmU+DQo8cD5FeHBlY3RlZCByZXN1bHQ6IDxzcGFu
IGlkPSJleHBlY3RlZCI+VVRGLTg8L3NwYW4+DQo8ZGl2Pg0KIDxzdHlsZSBzY29wZWQ+DQogIC5w
YXNzIHsgYmFja2dyb3VuZDogZ3JlZW47IGNvbG9yOiB3aGl0ZTsgcGFkZGluZzogMC41ZW07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