send() should only take ArrayBufferView
authorAnne van Kesteren <annevk@opera.com>
Thu, 12 Apr 2012 08:59:33 +0200
changeset 61f0c81ac5c134
parent 60 8c53a95647eb
child 62 e28edef46927
send() should only take ArrayBufferView
Overview.html
Overview.src.html
     1.1 --- a/Overview.html	Thu Apr 12 08:49:54 2012 +0200
     1.2 +++ b/Overview.html	Thu Apr 12 08:59:33 2012 +0200
     1.3 @@ -253,13 +253,11 @@
     1.4    <p>This specification relies on several underlying specifications.</p>
     1.5  
     1.6    <dl>
     1.7 -
     1.8     <dt>Cross-Origin Resource Sharing</dt>
     1.9     <dd><p>A <span>conforming user agent</span> must
    1.10     support the algorithms of the Cross-Origin Resource Sharing
    1.11     specification. <a href="#refsCORS">[CORS]</a></dd>
    1.12  
    1.13 -
    1.14     <dt>DOM4</dt>
    1.15     <dd><p>A <span>conforming user agent</span> must
    1.16     support at least the subset of the functionality defined in DOM4 that
    1.17 @@ -278,7 +276,6 @@
    1.18     this specification relies upon, such as the <code class="external"><a href="http://dev.w3.org/2006/webapi/FileAPI/#blob">Blob</a></code> and
    1.19     <code class="external"><a href="http://dev.w3.org/2006/webapi/FileAPI/#file">File</a></code> interfaces. <a href="#refsFILEAPI">[FILEAPI]</a></p>
    1.20  
    1.21 -
    1.22     <dt>HTML</dt>
    1.23     <dd><p>A <span>conforming user agent</span> must
    1.24     support at least the subset of the functionality defined in HTML that
    1.25 @@ -291,7 +288,6 @@
    1.26     support some version of the HTTP protocol. Requirements regarding HTTP
    1.27     are made throughout the specification. <a href="#refsHTTP">[HTTP]</a>
    1.28  
    1.29 -
    1.30     <dt>Progress Events</dt>
    1.31     <dd><p>A <span>conforming user agent</span> must support the
    1.32     Progress Events specification.
    1.33 @@ -299,10 +295,10 @@
    1.34  
    1.35     <dt>Typed Array</dt>
    1.36     <dd><p>A <span>conforming user agent</span> must support the
    1.37 -   <code class="external"><a href="http://www.khronos.org/registry/typedarray/specs/latest/#5">ArrayBuffer</a></code> object.
    1.38 +   <code class="external"><a href="http://www.khronos.org/registry/typedarray/specs/latest/#5">ArrayBuffer</a></code> and
    1.39 +   <code class="external"><a href="http://www.khronos.org/registry/typedarray/specs/latest/#6">ArrayBufferView</a></code> objects.
    1.40     <a href="#refsTYPEDARRAY">[TYPEDARRAY]</a>
    1.41  
    1.42 -
    1.43     <dt>Web IDL</dt>
    1.44     <dd><p>A <span>conforming user agent</span> must also
    1.45     be a conforming implementation of the IDL fragments in this
    1.46 @@ -398,7 +394,7 @@
    1.47             attribute unsigned long <a href="#dom-xmlhttprequest-timeout" title="dom-XMLHttpRequest-timeout">timeout</a>;
    1.48             attribute boolean <a href="#dom-xmlhttprequest-withcredentials" title="dom-XMLHttpRequest-withCredentials">withCredentials</a>;
    1.49    readonly attribute <a href="#xmlhttprequestupload">XMLHttpRequestUpload</a> <a href="#dom-xmlhttprequest-upload" title="dom-XMLHttpRequest-upload">upload</a>;
    1.50 -  void <a href="#dom-xmlhttprequest-send" title="dom-XMLHttpRequest-send">send</a>(optional (<a class="external" href="http://www.khronos.org/registry/typedarray/specs/latest/#5">ArrayBuffer</a> or <a class="external" href="http://dev.w3.org/2006/webapi/FileAPI/#blob">Blob</a> or <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a> or DOMString or <a href="#formdata">FormData</a>)? <var>data</var> = null);
    1.51 +  void <a href="#dom-xmlhttprequest-send" title="dom-XMLHttpRequest-send">send</a>(optional (<a class="external" href="http://www.khronos.org/registry/typedarray/specs/latest/#6">ArrayBufferView</a> or <a class="external" href="http://dev.w3.org/2006/webapi/FileAPI/#blob">Blob</a> or <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a> or DOMString or <a href="#formdata">FormData</a>)? <var>data</var> = null);
    1.52    void <a href="#dom-xmlhttprequest-abort" title="dom-XMLHttpRequest-abort">abort</a>();
    1.53  
    1.54    // <a href="#response">response</a>
    1.55 @@ -1281,7 +1277,7 @@
    1.56  
    1.57      <dl class="switch">
    1.58  
    1.59 -     <dt><code class="external"><a href="http://www.khronos.org/registry/typedarray/specs/latest/#5">ArrayBuffer</a></code>
    1.60 +     <dt><code class="external"><a href="http://www.khronos.org/registry/typedarray/specs/latest/#6">ArrayBufferView</a></code>
    1.61       <dd><p>Let the <a href="#request-entity-body">request entity body</a> be the raw data
    1.62       represented by <var title="">data</var>.</dd>
    1.63  
     2.1 --- a/Overview.src.html	Thu Apr 12 08:49:54 2012 +0200
     2.2 +++ b/Overview.src.html	Thu Apr 12 08:59:33 2012 +0200
     2.3 @@ -260,13 +260,11 @@
     2.4    <p>This specification relies on several underlying specifications.</p>
     2.5  
     2.6    <dl>
     2.7 -
     2.8     <dt>Cross-Origin Resource Sharing</dt>
     2.9     <dd><p>A <span>conforming user agent</span> must
    2.10     support the algorithms of the Cross-Origin Resource Sharing
    2.11     specification. <span data-anolis-ref>CORS</span></p></dd>
    2.12  
    2.13 -
    2.14     <dt>DOM4</dt>
    2.15     <dd><p>A <span>conforming user agent</span> must
    2.16     support at least the subset of the functionality defined in DOM4 that
    2.17 @@ -285,7 +283,6 @@
    2.18     this specification relies upon, such as the <code data-anolis-spec=fileapi>Blob</code> and
    2.19     <code data-anolis-spec=fileapi>File</code> interfaces. <span data-anolis-ref>FILEAPI</span></p>
    2.20  
    2.21 -
    2.22     <dt>HTML</dt>
    2.23     <dd><p>A <span>conforming user agent</span> must
    2.24     support at least the subset of the functionality defined in HTML that
    2.25 @@ -298,7 +295,6 @@
    2.26     support some version of the HTTP protocol. Requirements regarding HTTP
    2.27     are made throughout the specification. <span data-anolis-ref>HTTP</span>
    2.28  
    2.29 -
    2.30     <dt>Progress Events</dt>
    2.31     <dd><p>A <span>conforming user agent</span> must support the
    2.32     Progress Events specification.
    2.33 @@ -306,10 +302,10 @@
    2.34  
    2.35     <dt>Typed Array</dt>
    2.36     <dd><p>A <span>conforming user agent</span> must support the
    2.37 -   <code data-anolis-spec=typedarray>ArrayBuffer</code> object.
    2.38 +   <code data-anolis-spec=typedarray>ArrayBuffer</code> and
    2.39 +   <code data-anolis-spec=typedarray>ArrayBufferView</code> objects.
    2.40     <span data-anolis-ref>TYPEDARRAY</span>
    2.41  
    2.42 -
    2.43     <dt>Web IDL</dt>
    2.44     <dd><p>A <span>conforming user agent</span> must also
    2.45     be a conforming implementation of the IDL fragments in this
    2.46 @@ -405,7 +401,7 @@
    2.47             attribute unsigned long <span title="dom-XMLHttpRequest-timeout">timeout</span>;
    2.48             attribute boolean <span title="dom-XMLHttpRequest-withCredentials">withCredentials</span>;
    2.49    readonly attribute <span>XMLHttpRequestUpload</span> <span title="dom-XMLHttpRequest-upload">upload</span>;
    2.50 -  void <span title="dom-XMLHttpRequest-send">send</span>(optional (<span data-anolis-spec=typedarray>ArrayBuffer</span> or <span data-anolis-spec=fileapi>Blob</span> or <span data-anolis-spec=dom>Document</span> or DOMString or <span>FormData</span>)? <var>data</var> = null);
    2.51 +  void <span title="dom-XMLHttpRequest-send">send</span>(optional (<span data-anolis-spec=typedarray>ArrayBufferView</span> or <span data-anolis-spec=fileapi>Blob</span> or <span data-anolis-spec=dom>Document</span> or DOMString or <span>FormData</span>)? <var>data</var> = null);
    2.52    void <span title="dom-XMLHttpRequest-abort">abort</span>();
    2.53  
    2.54    // <a href="#response">response</a>
    2.55 @@ -1288,7 +1284,7 @@
    2.56  
    2.57      <dl class=switch>
    2.58  
    2.59 -     <dt><code data-anolis-spec=typedarray>ArrayBuffer</code>
    2.60 +     <dt><code data-anolis-spec=typedarray>ArrayBufferView</code>
    2.61       <dd><p>Let the <span>request entity body</span> be the raw data
    2.62       represented by <var title>data</var>.</p></dd>
    2.63