Update of /sources/public/html5/websockets
In directory hutz:/tmp/cvs-serv5155
Modified Files:
Overview.html
Log Message:
Tighten up the definition of bufferedAmount. (whatwg r5049)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/websockets/Overview.html,v
retrieving revision 1.169
retrieving revision 1.170
diff -u -d -r1.169 -r1.170
--- Overview.html 14 Apr 2010 20:00:47 -0000 1.169
+++ Overview.html 15 Apr 2010 00:21:46 -0000 1.170
@@ -183,7 +183,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>The WebSocket API</h1>
- <h2 class="no-num no-toc" id="editor-s-draft-14-april-2010">Editor's Draft 14 April 2010</h2>
+ <h2 class="no-num no-toc" id="editor-s-draft-15-april-2010">Editor's Draft 15 April 2010</h2>
<dl><dt>Latest Published Version:</dt>
<dd><a href="http://www.w3.org/TR/websockets/">http://www.w3.org/TR/websockets/</a></dd>
<dt>Latest Editor's Draft:</dt>
@@ -247,7 +247,7 @@
Working Group</a> is the W3C working group responsible for this
specification's progress along the W3C Recommendation track.
- This specification is the 14 April 2010 Editor's Draft.
+ This specification is the 15 April 2010 Editor's Draft.
<p>This specification is being developed in conjunction with an
Internet Draft for a wire protocol, the WebSocket Protocol,
available from the following location:<ul><li>WebSocket Protocol Internet-Draft: <a href="http://www.whatwg.org/specs/web-socket-protocol/">http://www.whatwg.org/specs/web-socket-protocol/</a></li>
@@ -514,9 +514,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 <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"><a href="#dom-websocket-send">send()</a></code> method (the number does not
reset to zero once the connection closes).<div class="example">