<?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>21268</bug_id>
          
          <creation_ts>2013-03-13 16:24:46 +0000</creation_ts>
          <short_desc>Define MIME type terminology</short_desc>
          <delta_ts>2019-03-29 22:40:33 +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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</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>annevk</cc>
    
    <cc>d</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>simon.sapin</cc>
          
          <qa_contact>sideshowbarker+mimespec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84347</commentid>
    <comment_count>0</comment_count>
    <who name="Gordon P. Hemsley">gphemsley</who>
    <bug_when>2013-03-13 16:24:46 +0000</bug_when>
    <thetext>If a file is characterized as &quot;text/html;charset=utf-8&quot;, we need to make sure we have terminology for the following subsets of that:

* &quot;text/html;charset=utf-8&quot;
* &quot;text/html&quot;
* &quot;text&quot;

At the moment, the term &quot;MIME type&quot; (or &quot;type&quot;) can apply to any one of those.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84348</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Sapin">simon.sapin</who>
    <bug_when>2013-03-13 16:26:21 +0000</bug_when>
    <thetext>I’ve been using &quot;MIME type with parameters&quot; for the first one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84350</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-03-13 16:29:49 +0000</bug_when>
    <thetext>As far as I know we never needed a term for &quot;text&quot;. I recommend treating &quot;text/html&quot; as a single entity.

&quot;MIME type&quot; and &quot;MIME type with parameters&quot; works for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84356</commentid>
    <comment_count>3</comment_count>
    <who name="Gordon P. Hemsley">gphemsley</who>
    <bug_when>2013-03-13 17:16:14 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; As far as I know we never needed a term for &quot;text&quot;. I recommend treating
&gt; &quot;text/html&quot; as a single entity.

Such a term is used extensively in the MIME Sniffing spec, and I would guess elsewhere. Categories like &quot;text&quot;, &quot;image&quot;, &quot;audio&quot;, &quot;video&quot;, and &quot;application&quot; make it easier to group similar file formats, and I don&apos;t think it would be wise to treat &quot;text/html&quot; as a single atomic entity when it is clearly made up of two separate parts (&quot;type&quot; and &quot;subtype&quot;).

&gt; &quot;MIME type&quot; and &quot;MIME type with parameters&quot; works for me.

I&apos;m fine with that, too, but I think earlier discussion indicated that existing usage might be such that &quot;MIME type&quot; includes parameters (at least in some cases). If we want to buck that trend, that&apos;s OK by me.

But I also want to reiterate that &quot;MIME type&quot; would then be an entity divisible into &quot;type&quot; and &quot;subtype&quot; parts. By extension, then, &quot;MIME type with parameters&quot; would be made up of &quot;type&quot;, &quot;subtype&quot;, and &quot;parameters&quot; parts. (And both would also have additional separator characters involved, like slashes and semicolons.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84384</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-03-14 00:44:54 +0000</bug_when>
    <thetext>Why do we care about type vs subtype as separate referenceable parts? Shouldn&apos;t we just treat the whole thing as an opaque string?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84385</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-03-14 00:45:28 +0000</bug_when>
    <thetext>Sorry, missed the part where you said you needed that specifically for the sniffing spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129715</commentid>
    <comment_count>6</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2019-03-29 22:40:33 +0000</bug_when>
    <thetext>This now exists: https://mimesniff.spec.whatwg.org/#mime-type-representation :

- MIME type, or valid MIME type string
- MIME type&apos;s essence
- MIME type&apos;s type</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>