- From: poot <cvsmail@w3.org>
- Date: Wed, 18 Jan 2012 17:57:19 -0500
- To: public-html-diffs@w3.org
workers; hixie: Add more explanatory text about postMessage()'s first argument. (whatwg r6903) http://dev.w3.org/cvsweb/html5/workers/Overview.html?r1=1.318&r2=1.319&f=h http://html5.org/tools/web-apps-tracker?from=6902&to=6903 =================================================================== RCS file: /sources/public/html5/workers/Overview.html,v retrieving revision 1.318 retrieving revision 1.319 diff -u -d -r1.318 -r1.319 --- Overview.html 14 Dec 2011 00:44:53 -0000 1.318 +++ Overview.html 18 Jan 2012 22:57:08 -0000 1.319 @@ -215,7 +215,7 @@ <h1>Web Workers</h1> - <h2 class="no-num no-toc" id="editor-s-draft-14-december-2011">Editor's Draft 14 December 2011</h2> + <h2 class="no-num no-toc" id="editor-s-draft-18-january-2012">Editor's Draft 18 January 2012</h2> <dl><dt>Latest Published Version:</dt> <dd><a href="http://www.w3.org/TR/workers/">http://www.w3.org/TR/workers/</a></dd> <dt>Latest Editor's Draft:</dt> @@ -323,7 +323,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 14 December 2011 Editor's Draft. + This specification is the 18 January 2012 Editor's Draft. </p><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 W3C Patent Policy</a>. W3C maintains a <a href="http://www.w3.org/2004/01/pp-impl/42538/status" rel="disclosure">public list of any patent disclosures</a> made in connection with the deliverables @@ -1493,7 +1493,14 @@ method on <code><a href="#worker">Worker</a></code> objects must act as if, when invoked, it immediately invoked the method of the same name on the port, with - the same arguments, and returned the same return value.<p>The following are the <span>event handlers</span> (and their + the same arguments, and returned the same return value.<div class="example"> + + <p>The <code title="dom-Worker-postMessage"><a href="#dom-worker-postmessage">postMessage()</a></code> + method's first argument can be structured data:</p> + + <pre>worker.postMessage({opcode: 'activate', device: 1938, parameters: [23, 102]});</pre> + + </div><p>The following are the <span>event handlers</span> (and their corresponding <span title="event handler event type">event handler event types</span>) that must be supported, as IDL attributes, by objects implementing the <code><a href="#worker">Worker</a></code> interface:<table><thead><tr><th><span title="event handlers">Event handler</span> <th><span>Event handler event type</span>
Received on Wednesday, 18 January 2012 22:57:24 UTC