<?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>19801</bug_id>
          
          <creation_ts>2012-10-31 19:06:17 +0000</creation_ts>
          <short_desc>Pattern matching algorithm doesn&apos;t handle TT bytes</short_desc>
          <delta_ts>2014-09-20 21:57:41 +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>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Gordon P. Hemsley">gphemsley</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>sideshowbarker+mimespec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77539</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-10-31 19:06:17 +0000</bug_when>
    <thetext>The pattern matching algorithm doesn&apos;t mention TT bytes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77548</commentid>
    <comment_count>1</comment_count>
    <who name="Gordon P. Hemsley">gphemsley</who>
    <bug_when>2012-10-31 19:41:44 +0000</bug_when>
    <thetext>0xTT is an alias for &quot;tag-terminating byte&quot; (as mentioned in the definition).

How can I mark it up to make that clearer?

(I considered using &lt;abbr&gt;, but I wasn&apos;t sure.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77590</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-10-31 22:15:37 +0000</bug_when>
    <thetext>Just put it in the algorithm, along the lines of &quot;if the byte in the pattern is &apos;TT&apos;, then...&quot;.

Note that technically, &quot;TT&quot; isn&apos;t a &quot;byte&quot; as you&apos;ve defined them. You might want to massage your terminology a bit so that the patterns are made of &quot;pattern components&quot; or some such, which can be either byte values or &quot;TT&quot; or something.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111889</commentid>
    <comment_count>3</comment_count>
    <who name="Gordon P. Hemsley">gphemsley</who>
    <bug_when>2014-09-20 21:57:41 +0000</bug_when>
    <thetext>I&apos;ve attempted to address this by adding more explicit markup and wording:

https://github.com/whatwg/mimesniff/commit/444276e08f9cfdc7e40c1c33c1004aaeece35d0f

I don&apos;t think that this is really that ambiguous, so I&apos;m going to close this, but feel free to reopen if this isn&apos;t sufficient.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>