<?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>20867</bug_id>
          
          <creation_ts>2013-02-04 19:51:31 +0000</creation_ts>
          <short_desc>&quot;sniffed media type&quot; is used in confusing manner</short_desc>
          <delta_ts>2013-02-22 19:42:21 +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>MIME</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          <blocked>19798</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Gordon P. Hemsley">gphemsley</assigned_to>
          <cc>mike</cc>
          
          <qa_contact>sideshowbarker+mimespec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>82539</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-02-04 19:51:31 +0000</bug_when>
    <thetext>http://mimesniff.spec.whatwg.org/#determining-the-sniffed-media-type-of-a-resource

This algorithm is confusing. Section 4 defines &quot;sniffed media type&quot; as the result of invoking an algorithm, but then that algorithm reads that value. It looks like the algorithm really should be reading and writing to a &quot;local variable&quot;, and then returning that, or, that the term shouldn&apos;t be defined outside that algorithm such that the algorithm should just be called directly by referencing specs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83588</commentid>
    <comment_count>1</comment_count>
    <who name="Gordon P. Hemsley">gphemsley</who>
    <bug_when>2013-02-22 19:42:21 +0000</bug_when>
    <thetext>I believe I have fixed this.

https://github.com/whatwg/mimesniff/commit/60f10b24638b728cb73bee9a8b2f08e82359487f</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>