<?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>18521</bug_id>
          
          <creation_ts>2012-08-10 10:14:34 +0000</creation_ts>
          <short_desc>Spec is unclear about lower-casing content types</short_desc>
          <delta_ts>2012-10-15 19:20:13 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>needs test</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ms2ger">Ms2ger</reporter>
          <assigned_to name="Arun">arun</assigned_to>
          <cc>julian.reschke</cc>
    
    <cc>odinho</cc>
    
    <cc>pavel.zubkou</cc>
    
    <cc>public-webapps</cc>
    
    <cc>saurabhanandiit</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72025</commentid>
    <comment_count>0</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-08-10 10:14:34 +0000</bug_when>
    <thetext>It is unclear what the type of

new Blob([], { type: &quot;TEXT/HTML&quot; })

or 

new Blob().slice(0, 0, &quot;TEXT/HTML&quot;);

should be (&apos;text/html&apos; or &apos;TEXT/HTML&apos;).

(Firefox has &apos;TEXT/HTML&apos; twice; Chrome has &apos;text/html&apos; for the former and &apos;TEXT/HTML&apos; for the latter.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72028</commentid>
    <comment_count>1</comment_count>
    <who name="Odin Hørthe Omdal">odinho</who>
    <bug_when>2012-08-10 11:05:31 +0000</bug_when>
    <thetext>Opera also has TEXT/HTML twice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72061</commentid>
    <comment_count>2</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2012-08-10 20:39:30 +0000</bug_when>
    <thetext>I think it might be useful to spec. this to be lower case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73362</commentid>
    <comment_count>3</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2012-09-06 20:12:24 +0000</bug_when>
    <thetext>In the spec., I defer to RFC2616, asking the parser to parse it in accordance with the definition of type and subtype tokens.

RFC2616 says:

The type, subtype, and parameter attribute names are case-insensitive. Parameter values might or might not be case-sensitive, depending on the semantics of the parameter name.

Thus, TEXT/HTML is equivalent to text/html.

This isn&apos;t a bug, but an implementation quirk.  I don&apos;t think we need further spec. guidance on this issue.  In fact, I think it places an emphasis on authors to coin the type string with some diligence.  Authors get back what they ask for.

Marking invalid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73363</commentid>
    <comment_count>4</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-09-06 20:18:32 +0000</bug_when>
    <thetext>Step 5.2 of the Blob constructor algorithm is

&gt; Convert every character in s to lower case.

There&apos;s something similar for slice().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73365</commentid>
    <comment_count>5</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2012-09-06 20:30:33 +0000</bug_when>
    <thetext>This is a good catch.  I think this should be removed.  Thoughts?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73373</commentid>
    <comment_count>6</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2012-09-06 22:13:31 +0000</bug_when>
    <thetext>Like in Bug 18529, I am wondering whether we should forgo parsing for validity altogether.  The prevailing school of thought is that browsers should just treat &quot;type&quot; as an opaque string.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76318</commentid>
    <comment_count>7</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2012-10-15 18:01:15 +0000</bug_when>
    <thetext>We&apos;ve decided to treat type as an opaque string.  Implementations don&apos;t throw; browser developers are reluctant to throw, and thus validation against the RFC is not useful.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>