<?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>24745</bug_id>
          
          <creation_ts>2014-02-20 13:30:04 +0000</creation_ts>
          <short_desc>&quot;Parse a MIME type&quot; algorithm compares bytes to code points</short_desc>
          <delta_ts>2019-03-29 22:39:19 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://mimesniff.spec.whatwg.org/#parse-a-mime-type</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gordon P. Hemsley">gphemsley</reporter>
          <assigned_to name="Gordon P. Hemsley">gphemsley</assigned_to>
          <cc>d</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>sideshowbarker+mimespec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100959</commentid>
    <comment_count>0</comment_count>
    <who name="Gordon P. Hemsley">gphemsley</who>
    <bug_when>2014-02-20 13:30:04 +0000</bug_when>
    <thetext>Per zcorpan, the &quot;parse a MIME type&quot; compares bytes to code points.

Presumably this algorithm should be analyzing only the raw (though ASCII-like) byte stream, and so should refer to ASCII bytes (0xNN) instead of Unicode code points (U+NNNN).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101225</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-02-24 10:03:33 +0000</bug_when>
    <thetext>Doesn&apos;t this need to be invoked from places where you have a string instead of a stream of bytes, e.g. video.canPlayType?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101235</commentid>
    <comment_count>2</comment_count>
    <who name="Gordon P. Hemsley">gphemsley</who>
    <bug_when>2014-02-24 13:32:51 +0000</bug_when>
    <thetext>(In reply to Simon Pieters from comment #1)
&gt; Doesn&apos;t this need to be invoked from places where you have a string instead
&gt; of a stream of bytes, e.g. video.canPlayType?

I think the jury&apos;s still out on that; is that dependent on bug 11984?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129714</commentid>
    <comment_count>3</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2019-03-29 22:39:19 +0000</bug_when>
    <thetext>Parse a MIME type got rewritten and is now good on this front.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>