send() should only take ArrayBufferView
authorAnne van Kesteren <annevk@opera.com>
Thu, 12 Apr 2012 08:59:33 +0200
changeset 61 f0c81ac5c134
parent 60 8c53a95647eb
child 62 e28edef46927
send() should only take ArrayBufferView
Overview.html
Overview.src.html
--- a/Overview.html	Thu Apr 12 08:49:54 2012 +0200
+++ b/Overview.html	Thu Apr 12 08:59:33 2012 +0200
@@ -253,13 +253,11 @@
   <p>This specification relies on several underlying specifications.</p>
 
   <dl>
-
    <dt>Cross-Origin Resource Sharing</dt>
    <dd><p>A <span>conforming user agent</span> must
    support the algorithms of the Cross-Origin Resource Sharing
    specification. <a href="#refsCORS">[CORS]</a></dd>
 
-
    <dt>DOM4</dt>
    <dd><p>A <span>conforming user agent</span> must
    support at least the subset of the functionality defined in DOM4 that
@@ -278,7 +276,6 @@
    this specification relies upon, such as the <code class="external"><a href="http://dev.w3.org/2006/webapi/FileAPI/#blob">Blob</a></code> and
    <code class="external"><a href="http://dev.w3.org/2006/webapi/FileAPI/#file">File</a></code> interfaces. <a href="#refsFILEAPI">[FILEAPI]</a></p>
 
-
    <dt>HTML</dt>
    <dd><p>A <span>conforming user agent</span> must
    support at least the subset of the functionality defined in HTML that
@@ -291,7 +288,6 @@
    support some version of the HTTP protocol. Requirements regarding HTTP
    are made throughout the specification. <a href="#refsHTTP">[HTTP]</a>
 
-
    <dt>Progress Events</dt>
    <dd><p>A <span>conforming user agent</span> must support the
    Progress Events specification.
@@ -299,10 +295,10 @@
 
    <dt>Typed Array</dt>
    <dd><p>A <span>conforming user agent</span> must support the
-   <code class="external"><a href="http://www.khronos.org/registry/typedarray/specs/latest/#5">ArrayBuffer</a></code> object.
+   <code class="external"><a href="http://www.khronos.org/registry/typedarray/specs/latest/#5">ArrayBuffer</a></code> and
+   <code class="external"><a href="http://www.khronos.org/registry/typedarray/specs/latest/#6">ArrayBufferView</a></code> objects.
    <a href="#refsTYPEDARRAY">[TYPEDARRAY]</a>
 
-
    <dt>Web IDL</dt>
    <dd><p>A <span>conforming user agent</span> must also
    be a conforming implementation of the IDL fragments in this
@@ -398,7 +394,7 @@
            attribute unsigned long <a href="#dom-xmlhttprequest-timeout" title="dom-XMLHttpRequest-timeout">timeout</a>;
            attribute boolean <a href="#dom-xmlhttprequest-withcredentials" title="dom-XMLHttpRequest-withCredentials">withCredentials</a>;
   readonly attribute <a href="#xmlhttprequestupload">XMLHttpRequestUpload</a> <a href="#dom-xmlhttprequest-upload" title="dom-XMLHttpRequest-upload">upload</a>;
-  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);
+  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);
   void <a href="#dom-xmlhttprequest-abort" title="dom-XMLHttpRequest-abort">abort</a>();
 
   // <a href="#response">response</a>
@@ -1281,7 +1277,7 @@
 
     <dl class="switch">
 
-     <dt><code class="external"><a href="http://www.khronos.org/registry/typedarray/specs/latest/#5">ArrayBuffer</a></code>
+     <dt><code class="external"><a href="http://www.khronos.org/registry/typedarray/specs/latest/#6">ArrayBufferView</a></code>
      <dd><p>Let the <a href="#request-entity-body">request entity body</a> be the raw data
      represented by <var title="">data</var>.</dd>
 
--- a/Overview.src.html	Thu Apr 12 08:49:54 2012 +0200
+++ b/Overview.src.html	Thu Apr 12 08:59:33 2012 +0200
@@ -260,13 +260,11 @@
   <p>This specification relies on several underlying specifications.</p>
 
   <dl>
-
    <dt>Cross-Origin Resource Sharing</dt>
    <dd><p>A <span>conforming user agent</span> must
    support the algorithms of the Cross-Origin Resource Sharing
    specification. <span data-anolis-ref>CORS</span></p></dd>
 
-
    <dt>DOM4</dt>
    <dd><p>A <span>conforming user agent</span> must
    support at least the subset of the functionality defined in DOM4 that
@@ -285,7 +283,6 @@
    this specification relies upon, such as the <code data-anolis-spec=fileapi>Blob</code> and
    <code data-anolis-spec=fileapi>File</code> interfaces. <span data-anolis-ref>FILEAPI</span></p>
 
-
    <dt>HTML</dt>
    <dd><p>A <span>conforming user agent</span> must
    support at least the subset of the functionality defined in HTML that
@@ -298,7 +295,6 @@
    support some version of the HTTP protocol. Requirements regarding HTTP
    are made throughout the specification. <span data-anolis-ref>HTTP</span>
 
-
    <dt>Progress Events</dt>
    <dd><p>A <span>conforming user agent</span> must support the
    Progress Events specification.
@@ -306,10 +302,10 @@
 
    <dt>Typed Array</dt>
    <dd><p>A <span>conforming user agent</span> must support the
-   <code data-anolis-spec=typedarray>ArrayBuffer</code> object.
+   <code data-anolis-spec=typedarray>ArrayBuffer</code> and
+   <code data-anolis-spec=typedarray>ArrayBufferView</code> objects.
    <span data-anolis-ref>TYPEDARRAY</span>
 
-
    <dt>Web IDL</dt>
    <dd><p>A <span>conforming user agent</span> must also
    be a conforming implementation of the IDL fragments in this
@@ -405,7 +401,7 @@
            attribute unsigned long <span title="dom-XMLHttpRequest-timeout">timeout</span>;
            attribute boolean <span title="dom-XMLHttpRequest-withCredentials">withCredentials</span>;
   readonly attribute <span>XMLHttpRequestUpload</span> <span title="dom-XMLHttpRequest-upload">upload</span>;
-  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);
+  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);
   void <span title="dom-XMLHttpRequest-abort">abort</span>();
 
   // <a href="#response">response</a>
@@ -1288,7 +1284,7 @@
 
     <dl class=switch>
 
-     <dt><code data-anolis-spec=typedarray>ArrayBuffer</code>
+     <dt><code data-anolis-spec=typedarray>ArrayBufferView</code>
      <dd><p>Let the <span>request entity body</span> be the raw data
      represented by <var title>data</var>.</p></dd>