<?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>7549</bug_id>
          
          <creation_ts>2009-09-09 10:17:42 +0000</creation_ts>
          <short_desc>define how to parse a MIME type</short_desc>
          <delta_ts>2010-10-04 14:46:22 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NE, NoReply</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</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>26964</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2009-09-09 10:17:42 +0000</bug_when>
    <thetext>Define how to parse a MIME type so it becomes a little more clear how e.g. &lt;script type=...&gt; is supposed to work (and other things taking a MIME type).

&lt;script type&quot;text/javascript &quot;&gt; (trailing space) ought to work per this algorithm by the way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27331</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-09-19 10:43:25 +0000</bug_when>
    <thetext>It turns out that since HTTP doesn&apos;t actually define this (you have to read between the lines or apply &quot;common sense&quot; to get an idea of how to parse MIME types, and error handling isn&apos;t defined at all), different parts of the platform have different requirements for how to handle MIME types. For example, &quot;text/javascript;&quot; (with the semicolon) is not a match in &lt;script type=&quot;&quot;&gt;, but &quot;text/html;&quot; is considered an HTML file, despite this MIME type not matching the grammar in the HTTP spec.

I added text to handle trimming spaces in &lt;script type&gt;. I haven&apos;t done anything for general MIME type handling. I think this is probably something for MIMESNIFF, since I doubt the HTTPWG will be fixing HTTPbis to define this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33415</commentid>
    <comment_count>2</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-03-14 14:50:53 +0000</bug_when>
    <thetext>This bug predates the HTML Working Group Decision Policy.

If you are satisfied with the resolution of this bug, 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

This bug is now being moved to VERIFIED. Please respond within two weeks. If this bug is not closed, reopened or escalated within two weeks, it may be marked as NoReply and will no longer be considered a pending comment.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>