- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 23 Aug 2012 22:15:21 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/websockets In directory hutz:/tmp/cvs-serv29265 Modified Files: Overview.html Log Message: Use an enum instead of a DOMString for binaryType. (whatwg r7261) Index: Overview.html =================================================================== RCS file: /sources/public/html5/websockets/Overview.html,v retrieving revision 1.273 retrieving revision 1.274 diff -u -d -r1.273 -r1.274 --- Overview.html 27 Jul 2012 05:57:02 -0000 1.273 +++ Overview.html 23 Aug 2012 22:15:19 -0000 1.274 @@ -216,7 +216,7 @@ <h1>The WebSocket API</h1> - <h2 class="no-num no-toc" id="editor-s-draft-27-july-2012">Editor's Draft 27 July 2012</h2> + <h2 class="no-num no-toc" id="editor-s-draft-23-august-2012">Editor's Draft 23 August 2012</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> @@ -352,7 +352,7 @@ </dl><p>The W3C <a href="http://www.w3.org/2008/webapps/">Web Applications Working Group</a> is the W3C working group responsible for this specification's progress along the W3C Recommendation track. - This specification is the 27 July 2012 Editor's Draft. + This specification is the 23 August 2012 Editor's Draft. </p> @@ -506,7 +506,8 @@ <h2 id="the-websocket-interface"><span class="secno">4 </span>The <code><a href="#websocket">WebSocket</a></code> interface</h2> - <pre class="idl">[<a href="#dom-websocket" title="dom-WebSocket">Constructor</a>(DOMString url, optional (DOMString or DOMString[]) protocols)] + <pre class="idl">enum <dfn id="binarytype">BinaryType</dfn> { "<span title="dom-BinaryType-blob">blob</span>", "<span>dom-BinaryType-arraybuffer">arraybuffer</span>" }; +[<a href="#dom-websocket" title="dom-WebSocket">Constructor</a>(DOMString url, optional (DOMString or DOMString[]) protocols)] interface <dfn id="websocket">WebSocket</dfn> : <span>EventTarget</span> { readonly attribute DOMString <a href="#dom-websocket-url" title="dom-WebSocket-url">url</a>; @@ -528,7 +529,7 @@ // messaging attribute <span>EventHandler</span> <a href="#handler-websocket-onmessage" title="handler-WebSocket-onmessage">onmessage</a>; - attribute DOMString <a href="#dom-websocket-binarytype" title="dom-WebSocket-binaryType">binaryType</a>; + attribute <a href="#binarytype">BinaryType</a> <a href="#dom-websocket-binarytype" title="dom-WebSocket-binaryType">binaryType</a>; void <a href="#dom-websocket-send" title="dom-WebSocket-send">send</a>(DOMString data); void <a href="#dom-websocket-send" title="dom-WebSocket-send">send</a>(<span>Blob</span> data); void <a href="#dom-websocket-send" title="dom-WebSocket-send">send</a>(<span>ArrayBuffer</span> data); @@ -829,11 +830,8 @@ <hr><p>When a <code><a href="#websocket">WebSocket</a></code> object is created, its <dfn id="dom-websocket-binarytype" title="dom-WebSocket-binaryType"><code>binaryType</code></dfn> IDL attribute must be set to the string "<code title="">blob</code>". On - getting, it must return the last value it was set to. On setting, if - the new value is either the string "<code title="">blob</code>" or - the string "<code title="">arraybuffer</code>", then set the IDL - attribute to this new value. Otherwise, throw a - <code>SyntaxError</code> exception.</p> + getting, it must return the last value it was set to. On setting, + the user agent must set the IDL attribute to the new value.</p> <p class="note">This attribute allows authors to control how binary data is exposed to scripts. By setting the attribute to "<code title="">blob</code>", binary data is returned in <code>Blob</code>
Received on Thursday, 23 August 2012 22:15:30 UTC