<?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>8479</bug_id>
          
          <creation_ts>2009-12-11 16:04:25 +0000</creation_ts>
          <short_desc>http content-type override mandatory for &lt;object&gt;</short_desc>
          <delta_ts>2010-10-04 13:57:24 +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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <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>w3c</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>30084</commentid>
    <comment_count>0</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2009-12-11 16:04:25 +0000</bug_when>
    <thetext>It appears that the current definition of &lt;object&gt; has several cases where @type (or a type derived from the &apos;extension&apos; of the URI) would override the server-supplied media type.

Consistent with other parts of the spec, this behavior should be optional (== a UA should be allowed to consider the HTTP content type as authoritative).

See related discussion, plus pointers to the Mozilla bug database, in http://lists.w3.org/Archives/Public/public-html/2009Dec/0260.html.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30103</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Barth">w3c</who>
    <bug_when>2009-12-13 02:56:04 +0000</bug_when>
    <thetext>What&apos;s the point of being vague here?  The browsers all use the @type media type, and there are scads of web sites that rely on this behavior.  In the email you cite, Jonas says that he wishes it weren&apos;t the case but he&apos;s not willing to implement the alternate behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30106</commentid>
    <comment_count>2</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2009-12-13 09:00:15 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; What&apos;s the point of being vague here?  The browsers all use the @type media
&gt; type, and there are scads of web sites that rely on this behavior.  In the
&gt; email you cite, Jonas says that he wishes it weren&apos;t the case but he&apos;s not
&gt; willing to implement the alternate behavior.

Actually, the alternate behavior already was implemented, and backed out because of *some* sites. AFAIR, Jonas said that it might be possible to revert that change by applying sufficient evangelism.

Also, this is not being vague. This is about allowing exactly two behaviors, of which one currently *seems* to be necessary, and the other one would be consistent with HTML4 and the web architecture in general (authoritative metadata). 

How is this different from the approach in draft-abarth-mime-sniff, which also allows both strategies?

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30107</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Barth">w3c</who>
    <bug_when>2009-12-13 11:03:29 +0000</bug_when>
    <thetext>&gt; Actually, the alternate behavior already was implemented, and backed out
&gt; because of *some* sites. AFAIR, Jonas said that it might be possible to revert
&gt; that change by applying sufficient evangelism.

He says he&apos;s not willing to do it unless someone shows him compatibility data.  Do you have compatibility data?

&gt; Also, this is not being vague. This is about allowing exactly two behaviors, of
&gt; which one currently *seems* to be necessary, and the other one would be
&gt; consistent with HTML4 and the web architecture in general (authoritative
&gt; metadata). 

My understanding is the HTML4 compatibility is irrelevant.  You&apos;re right that your suggesting something that&apos;s vague in that it allows two possibilities: one that matches reality and one that&apos;s a pleasant fiction.

&gt; How is this different from the approach in draft-abarth-mime-sniff, which also
&gt; allows both strategies?

HTML5 requires the sniffing part of draft-abarth-mime-sniff.  The alternate mode is for non-HTML user agents, like SIP phones.  In this case, we&apos;re talking about how to interpret an HTML element, which isn&apos;t that interesting for SIP phones.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30108</commentid>
    <comment_count>4</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2009-12-13 12:00:35 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; HTML5 requires the sniffing part of draft-abarth-mime-sniff.  The alternate
&gt; mode is for non-HTML user agents, like SIP phones.  In this case, we&apos;re talking
&gt; about how to interpret an HTML element, which isn&apos;t that interesting for SIP
&gt; phones.

That&apos;s definitively not what we agreed upon in the Working Group around one year ago. I&apos;ll open a separate bug.


</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30109</commentid>
    <comment_count>5</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2009-12-13 12:34:16 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; HTML5 requires the sniffing part of draft-abarth-mime-sniff.  The alternate
&gt; &gt; mode is for non-HTML user agents, like SIP phones.  In this case, we&apos;re talking
&gt; &gt; about how to interpret an HTML element, which isn&apos;t that interesting for SIP
&gt; &gt; phones.
&gt; 
&gt; That&apos;s definitively not what we agreed upon in the Working Group around one
&gt; year ago. I&apos;ll open a separate bug.

Actually, MINESNIFF has as Step 2 in Section 3:

   2.  If the user agent is configured to strictly obey Content-Type
       headers for this resource, then jump to the last step in this set
       of steps.

So yes, using the algorithm is mandatory, but the algorithm explicitly allows not to sniff.


</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30831</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-01-10 10:55:28 +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: Accepted
Change Description: see diff given below
Rationale: I&apos;ve allowed UAs to skip the sniffing steps, as with MIMESNIFF.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30833</commentid>
    <comment_count>7</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-01-10 11:04:08 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r4556.
Check-in comment: Allow skipping sniffing steps.
http://html5.org/tools/web-apps-tracker?from=4555&amp;to=4556
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>