<?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>18523</bug_id>
          
          <creation_ts>2012-08-10 14:57:39 +0000</creation_ts>
          <short_desc>Spec is unclear about the restriction on LWS in the attribute/value in the ABNF for media-type</short_desc>
          <delta_ts>2012-10-15 18:01:57 +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></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Saurabh Anand">saurabhanandiit</reporter>
          <assigned_to name="Arun">arun</assigned_to>
          <cc>Ms2ger</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>72037</commentid>
    <comment_count>0</comment_count>
    <who name="Saurabh Anand">saurabhanandiit</who>
    <bug_when>2012-08-10 14:57:39 +0000</bug_when>
    <thetext>http://tools.ietf.org/html/rfc2616#section-3.7 says that &quot;Linear white space (LWS) MUST NOT be used between the type and subtype, nor between an attribute and its value&quot; whereas http://tools.ietf.org/html/rfc2616#section-3.6 says &quot;parameter = attribute &quot;=&quot; value&quot;.

NOTE : The white space between the word attribute and the equal to sign and similarly, equal to sign and the word value.

In the Example section of http://dev.w3.org/2006/webapi/FileAPI/#constructorParams an instance is given of the call :

var b = new Blob([&quot;foobarbazetcetc&quot;, &quot;birdiebirdieboo&quot;], {type: &quot;text/plain;charset=UTF-8&quot;});

So, I assume |charset = UTF-8| should throw an error |charset=UTF-8| should not. Only two cases are possible : Either the example is wrong or the algorithm isn&apos;t clear enough.

Expectation : Either a more clear language used in the IETF specification to explain the ABNF for media-type.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72062</commentid>
    <comment_count>1</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2012-08-10 20:43:22 +0000</bug_when>
    <thetext>I think this bug isn&apos;t one with the File API spec, but should be filed on RFC 2616.  I defer to RFC 2616, and would prefer not to recreate rules already covered in RFC 2616.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76319</commentid>
    <comment_count>2</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2012-10-15 18:01:57 +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>