[html5] r5049 - [giow] (1) Tighten up the definition of bufferedAmount.

whatwg at whatwg.org whatwg at whatwg.org
Wed Apr 14 17:21:44 PDT 2010


Author: ianh
Date: 2010-04-14 17:21:43 -0700 (Wed, 14 Apr 2010)
New Revision: 5049

Modified:
   complete.html
   source
Log:
[giow] (1) Tighten up the definition of bufferedAmount.

Modified: complete.html
===================================================================
--- complete.html	2010-04-14 22:54:45 UTC (rev 5048)
+++ complete.html	2010-04-15 00:21:43 UTC (rev 5049)
@@ -186,7 +186,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <hgroup><h1>Web Applications 1.0</h1>
-    <h2 class="no-num no-toc">Draft Standard — 14 April 2010</h2>
+    <h2 class="no-num no-toc">Draft Standard — 15 April 2010</h2>
    </hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -68826,9 +68826,16 @@
    </dd>
 
   </dl><hr><p>The <dfn id=dom-websocket-bufferedamount title=dom-WebSocket-bufferedAmount><code>bufferedAmount</code></dfn>
-  attribute must return the number of bytes that have been queued but
-  not yet sent. This does not include framing overhead incurred by the
-  protocol. If the connection is closed, this attribute's value will
+  attribute must return the number of bytes of UTF-8 text that have
+  been queued using <code title=dom-WebSocket-send><a href=#dom-websocket-send>send()</a></code> but
+  that, as of the last time the <a href=#event-loop>event loop</a> started
+  executing a <a href=#concept-task title=concept-task>task</a>, had not yet been
+  transmitted to the network. (This thus includes any text sent during
+  the execution of the current task, regardless of whether the user
+  agent is able to transmit text asynchronously with script
+  execution.) This does not include framing overhead incurred by the
+  protocol, or buffering done by the operating system or network
+  hardware. If the connection is closed, this attribute's value will
   only increase with each call to the <code title=dom-WebSocket-send><a href=#dom-websocket-send>send()</a></code> method (the number does not
   reset to zero once the connection closes).</p>
 

Modified: source
===================================================================
--- source	2010-04-14 22:54:45 UTC (rev 5048)
+++ source	2010-04-15 00:21:43 UTC (rev 5049)
@@ -77210,9 +77210,16 @@
 
   <p>The <dfn
   title="dom-WebSocket-bufferedAmount"><code>bufferedAmount</code></dfn>
-  attribute must return the number of bytes that have been queued but
-  not yet sent. This does not include framing overhead incurred by the
-  protocol. If the connection is closed, this attribute's value will
+  attribute must return the number of bytes of UTF-8 text that have
+  been queued using <code title="dom-WebSocket-send">send()</code> but
+  that, as of the last time the <span>event loop</span> started
+  executing a <span title="concept-task">task</span>, had not yet been
+  transmitted to the network. (This thus includes any text sent during
+  the execution of the current task, regardless of whether the user
+  agent is able to transmit text asynchronously with script
+  execution.) This does not include framing overhead incurred by the
+  protocol, or buffering done by the operating system or network
+  hardware. If the connection is closed, this attribute's value will
   only increase with each call to the <code
   title="dom-WebSocket-send">send()</code> method (the number does not
   reset to zero once the connection closes).</p>




More information about the Commit-Watchers mailing list