<?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>17449</bug_id>
          
          <creation_ts>2012-06-09 03:39:35 +0000</creation_ts>
          <short_desc>It is unclear to set type to be lower case in Blob constructor.</short_desc>
          <delta_ts>2012-06-13 05:34:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>File API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Li Yin">li.yin</reporter>
          <assigned_to name="Arun">arun</assigned_to>
          <cc>eric.sun</cc>
    
    <cc>haraken</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68893</commentid>
    <comment_count>0</comment_count>
    <who name="Li Yin">li.yin</who>
    <bug_when>2012-06-09 03:39:35 +0000</bug_when>
    <thetext>From spec: http://dev.w3.org/2006/webapi/FileAPI/#dfn-BlobPropertyBag

Convert every character in s to lower case.

Does it mean we need set characters of Blob.type into lower case?
Or the lower-case conversion is just for obtaining the media-type, and Blob.type is still unchanged.

For example:
(new Blob([], {type: &quot;text/html; charset=UTF-8&quot;})).type
should be return：  text/html; charset=utf-8  or   text/html; charset=UTF-8  ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68917</commentid>
    <comment_count>1</comment_count>
    <who name="Yang Sun">eric.sun</who>
    <bug_when>2012-06-11 15:23:40 +0000</bug_when>
    <thetext>MIME type is usually in lower case, just a routine. In email, in RTP, in http, it is always in lower case.

And convert all to lower case,just avoid error in processing.

I think nothing else.

(In reply to comment #0)
&gt; From spec: http://dev.w3.org/2006/webapi/FileAPI/#dfn-BlobPropertyBag
&gt; 
&gt; Convert every character in s to lower case.
&gt; 
&gt; Does it mean we need set characters of Blob.type into lower case?
&gt; Or the lower-case conversion is just for obtaining the media-type, and
&gt; Blob.type is still unchanged.
&gt; 
&gt; For example:
&gt; (new Blob([], {type: &quot;text/html; charset=UTF-8&quot;})).type
&gt; should be return：  text/html; charset=utf-8  or   text/html; charset=UTF-8  ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68935</commentid>
    <comment_count>2</comment_count>
    <who name="Kentaro Hara">haraken</who>
    <bug_when>2012-06-12 00:55:41 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; MIME type is usually in lower case, just a routine. In email, in RTP, in http,
&gt; it is always in lower case.
&gt; 
&gt; And convert all to lower case,just avoid error in processing.

I agree that &quot;text/html; charset=UTF-8&quot; should be converted to &quot;text/html; charset=utf-8&quot; when parsing the MIME type. My question is whether we should set the converted value to type or not.

IMHO, returning &quot;text/html; charset=utf-8&quot; for (new Blob([], {type: &quot;text/html; charset=UTF-8&quot;})).type seems a bit strange. (Do we have another example that does such an implicit conversion?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69012</commentid>
    <comment_count>3</comment_count>
    <who name="Li Yin">li.yin</who>
    <bug_when>2012-06-13 05:34:28 +0000</bug_when>
    <thetext>From Spec: http://dev.w3.org/2006/webapi/FileAPI/#attributes-blob
The ASCII-encoded string in lower case representing the media type of the Blob.

It explicitly specified the type should be lower case.

Mark the bug to be INVALID.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>