[html5] r6152 - [giow] (1) Fix WebIDL-related issues uncovered by the recent updates to the webi [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu May 26 17:24:07 PDT 2011


Author: ianh
Date: 2011-05-26 17:24:04 -0700 (Thu, 26 May 2011)
New Revision: 6152

Modified:
   complete.html
   index
   source
Log:
[giow] (1) Fix WebIDL-related issues uncovered by the recent updates to the webidl checker

Modified: complete.html
===================================================================
--- complete.html	2011-05-26 23:47:22 UTC (rev 6151)
+++ complete.html	2011-05-27 00:24:04 UTC (rev 6152)
@@ -239,7 +239,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1>Web Applications 1.0</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 26 May 2011</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 27 May 2011</h2>
    </hgroup><dl><dt>Multiple-page version:</dt>
     <dd><a href=http://www.whatwg.org/specs/web-apps/current-work/complete/>http://www.whatwg.org/specs/web-apps/current-work/complete/</a></dd>
     <dt>One-page version:</dt>
@@ -3407,8 +3407,9 @@
     required for conforming IDL fragments, as described in the Web IDL
     specification. <a href=#refsWEBIDL>[WEBIDL]</a></p>
 
-    <p>The terms <dfn id=supported-property-indices>supported property indices</dfn> and
-    <dfn id=supported-property-names>supported property names</dfn> are used as defined in the
+    <p>The terms <dfn id=supported-property-indices>supported property indices</dfn>, <dfn id=supported-property-names>supported
+    property names</dfn>, and <dfn id=dfn-read-only-array title=dfn-read-only-array>read
+    only</dfn> (when applied to arrays) are used as defined in the
     WebIDL specification.</p>
 
     <p id=float-nan>Except where otherwise specified, if an IDL
@@ -10080,7 +10081,7 @@
            attribute DOMString <a href=#dom-accesskey title=dom-accessKey>accessKey</a>;
   readonly attribute DOMString <a href=#dom-accesskeylabel title=dom-accessKeyLabel>accessKeyLabel</a>;
            attribute boolean <a href=#dom-draggable title=dom-draggable>draggable</a>;
-  [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-dropzone title=dom-dropzone>dropzone</a>;
+  [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-dropzone title=dom-dropzone>dropzone</a>;
            attribute DOMString <a href=#dom-contenteditable title=dom-contentEditable>contentEditable</a>;
   readonly attribute boolean <a href=#dom-iscontenteditable title=dom-isContentEditable>isContentEditable</a>;
            attribute <a href=#htmlmenuelement>HTMLMenuElement</a> <a href=#dom-contextmenu title=dom-contextMenu>contextMenu</a>;
@@ -34538,18 +34539,22 @@
   <a href=#textmetrics>TextMetrics</a> <a href=#dom-context-2d-measuretext title=dom-context-2d-measureText>measureText</a>(in DOMString text);
 
   // drawing images
-  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlimageelement>HTMLImageElement</a> image, in double dx, in double dy, in optional double dw, in double dh);
+  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlimageelement>HTMLImageElement</a> image, in double dx, in double dy);
+  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlimageelement>HTMLImageElement</a> image, in double dx, in double dy, in double dw, in double dh);
   void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlimageelement>HTMLImageElement</a> image, in double sx, in double sy, in double sw, in double sh, in double dx, in double dy, in double dw, in double dh);
-  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlcanvaselement>HTMLCanvasElement</a> image, in double dx, in double dy, in optional double dw, in double dh);
+  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlcanvaselement>HTMLCanvasElement</a> image, in double dx, in double dy);
+  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlcanvaselement>HTMLCanvasElement</a> image, in double dx, in double dy, in double dw, in double dh);
   void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlcanvaselement>HTMLCanvasElement</a> image, in double sx, in double sy, in double sw, in double sh, in double dx, in double dy, in double dw, in double dh);
-  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlvideoelement>HTMLVideoElement</a> image, in double dx, in double dy, in optional double dw, in double dh);
+  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlvideoelement>HTMLVideoElement</a> image, in double dx, in double dy);
+  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlvideoelement>HTMLVideoElement</a> image, in double dx, in double dy, in double dw, in double dh);
   void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlvideoelement>HTMLVideoElement</a> image, in double sx, in double sy, in double sw, in double sh, in double dx, in double dy, in double dw, in double dh);
 
   // pixel manipulation
   <a href=#imagedata>ImageData</a> <a href=#dom-context-2d-createimagedata title=dom-context-2d-createImageData>createImageData</a>(in double sw, in double sh);
   <a href=#imagedata>ImageData</a> <a href=#dom-context-2d-createimagedata title=dom-context-2d-createImageData>createImageData</a>(in <a href=#imagedata>ImageData</a> imagedata);
   <a href=#imagedata>ImageData</a> <a href=#dom-context-2d-getimagedata title=dom-context-2d-getImageData>getImageData</a>(in double sx, in double sy, in double sw, in double sh);
-  void <a href=#dom-context-2d-putimagedata title=dom-context-2d-putImageData>putImageData</a>(in <a href=#imagedata>ImageData</a> imagedata, in double dx, in double dy, in optional double dirtyX, in double dirtyY, in double dirtyWidth, in double dirtyHeight);
+  void <a href=#dom-context-2d-putimagedata title=dom-context-2d-putImageData>putImageData</a>(in <a href=#imagedata>ImageData</a> imagedata, in double dx, in double dy);
+  void <a href=#dom-context-2d-putimagedata title=dom-context-2d-putImageData>putImageData</a>(in <a href=#imagedata>ImageData</a> imagedata, in double dx, in double dy, in double dirtyX, in double dirtyY, in double dirtyWidth, in double dirtyHeight);
 };
 
 interface <dfn id=canvasgradient>CanvasGradient</dfn> {
@@ -60973,7 +60978,7 @@
   any <a href=#dom-showmodaldialog title=dom-showModalDialog>showModalDialog</a>(in DOMString url, in optional any argument<!--, in optional DOMString features-->);
 
 <!--POSTMSG-->  // <a href=#web-messaging>cross-document messaging</a>
-  void <a href=#dom-window-postmessage title=dom-window-postMessage>postMessage</a>(in any message, in DOMString targetOrigin, in optional <a href=#messageportarray>MessagePortArray</a> ports);
+  void <a href=#dom-window-postmessage title=dom-window-postMessage>postMessage</a>(in any message, in DOMString targetOrigin, in optional sequence<<a href=#messageport>MessagePort</a>> ports);
 <!--POSTMSG-->
   // <a href=#event-handler-idl-attributes>event handler IDL attributes</a>
            attribute <a href=#function>Function</a> <a href=#handler-onabort title=handler-onabort>onabort</a>;
@@ -76772,7 +76777,7 @@
 
   <pre class=idl>[Supplemental, NoInterfaceObject]
 interface <dfn id=dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</dfn> : <a href=#workerglobalscope>WorkerGlobalScope</a> {
-  void <a href=#dom-dedicatedworkerglobalscope-postmessage title=dom-DedicatedWorkerGlobalScope-postMessage>postMessage</a>(in any message, in optional <a href=#messageportarray>MessagePortArray</a> ports);<!--
+  void <a href=#dom-dedicatedworkerglobalscope-postmessage title=dom-DedicatedWorkerGlobalScope-postMessage>postMessage</a>(in any message, in optional sequence<<a href=#messageport>MessagePort</a>> ports);<!--
   <span>MessagePort</span> <span title="dom-DedicatedWorkerGlobalScope-startConversation">startConversation</span>(in any message);-->
            attribute <a href=#function>Function</a> <a href=#handler-dedicatedworkerglobalscope-onmessage title=handler-DedicatedWorkerGlobalScope-onmessage>onmessage</a>;
 };</pre>
@@ -77317,7 +77322,7 @@
 interface <dfn id=worker>Worker</dfn> : <a href=#abstractworker>AbstractWorker</a> {
   void <a href=#dom-worker-terminate title=dom-Worker-terminate>terminate</a>();
 
-  void <a href=#dom-worker-postmessage title=dom-Worker-postMessage>postMessage</a>(in any message, in optional <a href=#messageportarray>MessagePortArray</a> ports);<!--
+  void <a href=#dom-worker-postmessage title=dom-Worker-postMessage>postMessage</a>(in any message, in optional sequence<<a href=#messageport>MessagePort</a>> ports);<!--
   <span>MessagePort</span> <span title="dom-Worker-startConversation">startConversation</span>(in any message);-->
            attribute <a href=#function>Function</a> <a href=#handler-worker-onmessage title=handler-Worker-onmessage>onmessage</a>;
 };</pre>
@@ -77572,8 +77577,10 @@
        interface, with the name <code title=event-connect>connect</code>, which does not bubble, is
        not cancelable, has no default action, has a <code title=dom-MessageEvent-data><a href=#dom-messageevent-data>data</a></code> attribute whose value
        is the empty string and has a <code title=dom-MessageEvent-ports><a href=#dom-messageevent-ports>ports</a></code> attribute whose
-       value is an array containing only the newly created port, and
-       <a href=#queue-a-task>queue a task</a> to dispatch the event at <var title="">worker global scope</var>.</li>
+       value is a <a href=#dfn-read-only-array title=dfn-read-only-array>read only</a>
+       array containing only the newly created port, and <a href=#queue-a-task>queue a
+       task</a> to dispatch the event at <var title="">worker
+       global scope</var>.</li>
 
        <li>
 
@@ -77625,8 +77632,9 @@
    interface, with the name <code title=event-connect>connect</code>, which does not bubble, is not
    cancelable, has no default action, has a <code title=dom-MessageEvent-data><a href=#dom-messageevent-data>data</a></code> attribute whose value is
    the empty string and has a <code title=dom-MessageEvent-ports><a href=#dom-messageevent-ports>ports</a></code> attribute whose value
-   is an array containing only the newly created port, and <a href=#queue-a-task>queue
-   a task</a> to dispatch the event at <var title="">worker global
+   is a <a href=#dfn-read-only-array title=dfn-read-only-array>read only</a> array
+   containing only the newly created port, and <a href=#queue-a-task>queue a
+   task</a> to dispatch the event at <var title="">worker global
    scope</var>.</li>
 
    <li>
@@ -77901,8 +77909,8 @@
   readonly attribute DOMString <a href=#dom-messageevent-origin title=dom-MessageEvent-origin>origin</a>;
   readonly attribute DOMString <a href=#dom-messageevent-lasteventid title=dom-MessageEvent-lastEventId>lastEventId</a>;
   readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-messageevent-source title=dom-MessageEvent-source>source</a>;
-  readonly attribute <a href=#messageportarray>MessagePortArray</a> <a href=#dom-messageevent-ports title=dom-MessageEvent-ports>ports</a>;
-  void <a href=#dom-messageevent-initmessageevent title=dom-MessageEvent-initMessageEvent>initMessageEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any dataArg, in DOMString originArg, in DOMString lastEventIdArg, in <a href=#windowproxy>WindowProxy</a> sourceArg, in <a href=#messageportarray>MessagePortArray</a> portsArg);
+  readonly attribute <a href=#messageport>MessagePort</a>[] <a href=#dom-messageevent-ports title=dom-MessageEvent-ports>ports</a>;
+  void <a href=#dom-messageevent-initmessageevent title=dom-MessageEvent-initMessageEvent>initMessageEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any dataArg, in DOMString originArg, in DOMString lastEventIdArg, in <a href=#windowproxy>WindowProxy</a> sourceArg, in sequence<<a href=#messageport>MessagePort</a>> portsArg);
 };</pre>
 
   <dl class=domintro><dt><var title="">event</var> . <code title=dom-MessageEvent-data><a href=#dom-messageevent-data>data</a></code></dt>
@@ -77944,7 +77952,7 @@
 
    <dd>
 
-    <p>Returns the <code><a href=#messageportarray>MessagePortArray</a></code> sent with the
+    <p>Returns the <code><a href=#messageport>MessagePort</a></code> array sent with the
     message, for <a href=#web-messaging>cross-document messaging</a> and
     <a href=#channel-messaging>channel messaging</a>.</p>
 
@@ -77977,7 +77985,7 @@
 
   <p>The <dfn id=dom-messageevent-ports title=dom-MessageEvent-ports><code>ports</code></dfn>
   attribute represents, in <a href=#web-messaging>cross-document messaging</a> and
-  <a href=#channel-messaging>channel messaging</a> the <code><a href=#messageportarray>MessagePortArray</a></code>
+  <a href=#channel-messaging>channel messaging</a> the <code><a href=#messageport>MessagePort</a></code> array
   being sent, if any.</p>
 
   <p>Except where otherwise specified, when the user agent creates and
@@ -78829,7 +78837,7 @@
 
   // messaging
            attribute <a href=#function>Function</a> <a href=#handler-websocket-onmessage title=handler-WebSocket-onmessage>onmessage</a>;
-           attribute Object <a href=#dom-websocket-binarytype title=dom-WebSocket-binaryType>binaryType</a>;
+           attribute object <a href=#dom-websocket-binarytype title=dom-WebSocket-binaryType>binaryType</a>;
   void <a href=#dom-websocket-send title=dom-WebSocket-send>send</a>(in DOMString data);
   void <a href=#dom-websocket-send title=dom-WebSocket-send>send</a>(in <span>ArrayBuffer</span> data);
   void <a href=#dom-websocket-send title=dom-WebSocket-send>send</a>(in <a href=#blob>Blob</a> data);
@@ -79563,6 +79571,12 @@
 
    <li>
 
+    <p>Make <var title="">new ports</var> into a <a href=#dfn-read-only-array title=dfn-read-only-array>read only</a> array.</p>
+
+   </li>
+
+   <li>
+
     <p>Return from the <code title=dom-window-postMessage><a href=#dom-window-postmessage>postMessage()</a></code> method, but
     asynchronously continue running these steps.</p>
 
@@ -79731,11 +79745,9 @@
   <p>Each channel has two message ports. Data sent through one port is
   received by the other port, and vice versa.</p>
 
-  <pre class=idl>typedef sequence<MessagePort> <dfn id=messageportarray>MessagePortArray</dfn>;
-
-interface <dfn id=messageport>MessagePort</dfn> {
+  <pre class=idl>interface <dfn id=messageport>MessagePort</dfn> {
 <!-- v2-onclose  readonly attribute boolean <span title="dom-MessagePort-active">active</span>;
--->  void <a href=#dom-messageport-postmessage title=dom-MessagePort-postMessage>postMessage</a>(in any message, in optional <a href=#messageportarray>MessagePortArray</a> ports);<!--
+-->  void <a href=#dom-messageport-postmessage title=dom-MessagePort-postMessage>postMessage</a>(in any message, in optional sequence<<a href=#messageport>MessagePort</a>> ports);<!--
   <span>MessagePort</span> <span title="dom-MessagePort-startConversation">startConversation</span>(in any message);-->
   void <a href=#dom-messageport-start title=dom-MessagePort-start>start</a>();
   void <a href=#dom-messageport-close title=dom-MessagePort-close>close</a>();
@@ -79911,6 +79923,12 @@
 
      </li>
 
+     <li>
+
+      <p>Make <var title="">new ports</var> into a <a href=#dfn-read-only-array title=dfn-read-only-array>read only</a> array.</p>
+
+     </li>
+
      <li><p>Let the <code title=dom-MessageEvent-ports><a href=#dom-messageevent-ports>ports</a></code>
      attribute of the event be the <var title="">new ports</var>
      array.</li>
@@ -79967,9 +79985,9 @@
    attribute of the event have the value of <var
    title="">message</var>, the method's first argument.</p></li>
 
-   <li><p>Let the <code
-   title="dom-MessageEvent-ports">ports</code> attribute
-   of the event be an array containing only <var
+   <li><p>Let the <code title="dom-MessageEvent-ports">ports</code>
+   attribute of the event be a <span title="dfn-read-only-array">read
+   only</span> array containing only <var
    title="">port2</var>.</p></li>
 
    <li><p>Return <var title="">port1</var> from the method, but

Modified: index
===================================================================
--- index	2011-05-26 23:47:22 UTC (rev 6151)
+++ index	2011-05-27 00:24:04 UTC (rev 6152)
@@ -243,7 +243,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 24 May 2011</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 27 May 2011</h2>
    </hgroup><dl><dt><strong>Web developer edition</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -3424,8 +3424,9 @@
     required for conforming IDL fragments, as described in the Web IDL
     specification. <a href=#refsWEBIDL>[WEBIDL]</a></p>
 
-    <p>The terms <dfn id=supported-property-indices>supported property indices</dfn> and
-    <dfn id=supported-property-names>supported property names</dfn> are used as defined in the
+    <p>The terms <dfn id=supported-property-indices>supported property indices</dfn>, <dfn id=supported-property-names>supported
+    property names</dfn>, and <dfn id=dfn-read-only-array title=dfn-read-only-array>read
+    only</dfn> (when applied to arrays) are used as defined in the
     WebIDL specification.</p>
 
     <p id=float-nan>Except where otherwise specified, if an IDL
@@ -10097,7 +10098,7 @@
            attribute DOMString <a href=#dom-accesskey title=dom-accessKey>accessKey</a>;
   readonly attribute DOMString <a href=#dom-accesskeylabel title=dom-accessKeyLabel>accessKeyLabel</a>;
            attribute boolean <a href=#dom-draggable title=dom-draggable>draggable</a>;
-  [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-dropzone title=dom-dropzone>dropzone</a>;
+  [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-dropzone title=dom-dropzone>dropzone</a>;
            attribute DOMString <a href=#dom-contenteditable title=dom-contentEditable>contentEditable</a>;
   readonly attribute boolean <a href=#dom-iscontenteditable title=dom-isContentEditable>isContentEditable</a>;
            attribute <a href=#htmlmenuelement>HTMLMenuElement</a> <a href=#dom-contextmenu title=dom-contextMenu>contextMenu</a>;
@@ -34558,18 +34559,22 @@
   <a href=#textmetrics>TextMetrics</a> <a href=#dom-context-2d-measuretext title=dom-context-2d-measureText>measureText</a>(in DOMString text);
 
   // drawing images
-  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlimageelement>HTMLImageElement</a> image, in double dx, in double dy, in optional double dw, in double dh);
+  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlimageelement>HTMLImageElement</a> image, in double dx, in double dy);
+  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlimageelement>HTMLImageElement</a> image, in double dx, in double dy, in double dw, in double dh);
   void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlimageelement>HTMLImageElement</a> image, in double sx, in double sy, in double sw, in double sh, in double dx, in double dy, in double dw, in double dh);
-  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlcanvaselement>HTMLCanvasElement</a> image, in double dx, in double dy, in optional double dw, in double dh);
+  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlcanvaselement>HTMLCanvasElement</a> image, in double dx, in double dy);
+  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlcanvaselement>HTMLCanvasElement</a> image, in double dx, in double dy, in double dw, in double dh);
   void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlcanvaselement>HTMLCanvasElement</a> image, in double sx, in double sy, in double sw, in double sh, in double dx, in double dy, in double dw, in double dh);
-  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlvideoelement>HTMLVideoElement</a> image, in double dx, in double dy, in optional double dw, in double dh);
+  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlvideoelement>HTMLVideoElement</a> image, in double dx, in double dy);
+  void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlvideoelement>HTMLVideoElement</a> image, in double dx, in double dy, in double dw, in double dh);
   void <a href=#dom-context-2d-drawimage title=dom-context-2d-drawImage>drawImage</a>(in <a href=#htmlvideoelement>HTMLVideoElement</a> image, in double sx, in double sy, in double sw, in double sh, in double dx, in double dy, in double dw, in double dh);
 
   // pixel manipulation
   <a href=#imagedata>ImageData</a> <a href=#dom-context-2d-createimagedata title=dom-context-2d-createImageData>createImageData</a>(in double sw, in double sh);
   <a href=#imagedata>ImageData</a> <a href=#dom-context-2d-createimagedata title=dom-context-2d-createImageData>createImageData</a>(in <a href=#imagedata>ImageData</a> imagedata);
   <a href=#imagedata>ImageData</a> <a href=#dom-context-2d-getimagedata title=dom-context-2d-getImageData>getImageData</a>(in double sx, in double sy, in double sw, in double sh);
-  void <a href=#dom-context-2d-putimagedata title=dom-context-2d-putImageData>putImageData</a>(in <a href=#imagedata>ImageData</a> imagedata, in double dx, in double dy, in optional double dirtyX, in double dirtyY, in double dirtyWidth, in double dirtyHeight);
+  void <a href=#dom-context-2d-putimagedata title=dom-context-2d-putImageData>putImageData</a>(in <a href=#imagedata>ImageData</a> imagedata, in double dx, in double dy);
+  void <a href=#dom-context-2d-putimagedata title=dom-context-2d-putImageData>putImageData</a>(in <a href=#imagedata>ImageData</a> imagedata, in double dx, in double dy, in double dirtyX, in double dirtyY, in double dirtyWidth, in double dirtyHeight);
 };
 
 interface <dfn id=canvasgradient>CanvasGradient</dfn> {
@@ -60993,7 +60998,7 @@
   any <a href=#dom-showmodaldialog title=dom-showModalDialog>showModalDialog</a>(in DOMString url, in optional any argument<!--, in optional DOMString features-->);
 
 <!--POSTMSG-->  // <a href=#web-messaging>cross-document messaging</a>
-  void <a href=#dom-window-postmessage title=dom-window-postMessage>postMessage</a>(in any message, in DOMString targetOrigin, in optional <a href=#messageportarray>MessagePortArray</a> ports);
+  void <a href=#dom-window-postmessage title=dom-window-postMessage>postMessage</a>(in any message, in DOMString targetOrigin, in optional sequence<<a href=#messageport>MessagePort</a>> ports);
 <!--POSTMSG-->
   // <a href=#event-handler-idl-attributes>event handler IDL attributes</a>
            attribute <a href=#function>Function</a> <a href=#handler-onabort title=handler-onabort>onabort</a>;
@@ -75775,8 +75780,8 @@
   readonly attribute DOMString <a href=#dom-messageevent-origin title=dom-MessageEvent-origin>origin</a>;
   readonly attribute DOMString <a href=#dom-messageevent-lasteventid title=dom-MessageEvent-lastEventId>lastEventId</a>;
   readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-messageevent-source title=dom-MessageEvent-source>source</a>;
-  readonly attribute <a href=#messageportarray>MessagePortArray</a> <a href=#dom-messageevent-ports title=dom-MessageEvent-ports>ports</a>;
-  void <a href=#dom-messageevent-initmessageevent title=dom-MessageEvent-initMessageEvent>initMessageEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any dataArg, in DOMString originArg, in DOMString lastEventIdArg, in <a href=#windowproxy>WindowProxy</a> sourceArg, in <a href=#messageportarray>MessagePortArray</a> portsArg);
+  readonly attribute <a href=#messageport>MessagePort</a>[] <a href=#dom-messageevent-ports title=dom-MessageEvent-ports>ports</a>;
+  void <a href=#dom-messageevent-initmessageevent title=dom-MessageEvent-initMessageEvent>initMessageEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any dataArg, in DOMString originArg, in DOMString lastEventIdArg, in <a href=#windowproxy>WindowProxy</a> sourceArg, in sequence<<a href=#messageport>MessagePort</a>> portsArg);
 };</pre>
 
   <dl class=domintro><dt><var title="">event</var> . <code title=dom-MessageEvent-data><a href=#dom-messageevent-data>data</a></code></dt>
@@ -75818,7 +75823,7 @@
 
    <dd>
 
-    <p>Returns the <code><a href=#messageportarray>MessagePortArray</a></code> sent with the
+    <p>Returns the <code><a href=#messageport>MessagePort</a></code> array sent with the
     message, for <a href=#web-messaging>cross-document messaging</a> and
     <a href=#channel-messaging>channel messaging</a>.</p>
 
@@ -75851,7 +75856,7 @@
 
   <p>The <dfn id=dom-messageevent-ports title=dom-MessageEvent-ports><code>ports</code></dfn>
   attribute represents, in <a href=#web-messaging>cross-document messaging</a> and
-  <a href=#channel-messaging>channel messaging</a> the <code><a href=#messageportarray>MessagePortArray</a></code>
+  <a href=#channel-messaging>channel messaging</a> the <code><a href=#messageport>MessagePort</a></code> array
   being sent, if any.</p>
 
   <p>Except where otherwise specified, when the user agent creates and
@@ -76074,6 +76079,12 @@
 
    <li>
 
+    <p>Make <var title="">new ports</var> into a <a href=#dfn-read-only-array title=dfn-read-only-array>read only</a> array.</p>
+
+   </li>
+
+   <li>
+
     <p>Return from the <code title=dom-window-postMessage><a href=#dom-window-postmessage>postMessage()</a></code> method, but
     asynchronously continue running these steps.</p>
 
@@ -76242,11 +76253,9 @@
   <p>Each channel has two message ports. Data sent through one port is
   received by the other port, and vice versa.</p>
 
-  <pre class=idl>typedef sequence<MessagePort> <dfn id=messageportarray>MessagePortArray</dfn>;
-
-interface <dfn id=messageport>MessagePort</dfn> {
+  <pre class=idl>interface <dfn id=messageport>MessagePort</dfn> {
 <!-- v2-onclose  readonly attribute boolean <span title="dom-MessagePort-active">active</span>;
--->  void <a href=#dom-messageport-postmessage title=dom-MessagePort-postMessage>postMessage</a>(in any message, in optional <a href=#messageportarray>MessagePortArray</a> ports);<!--
+-->  void <a href=#dom-messageport-postmessage title=dom-MessagePort-postMessage>postMessage</a>(in any message, in optional sequence<<a href=#messageport>MessagePort</a>> ports);<!--
   <span>MessagePort</span> <span title="dom-MessagePort-startConversation">startConversation</span>(in any message);-->
   void <a href=#dom-messageport-start title=dom-MessagePort-start>start</a>();
   void <a href=#dom-messageport-close title=dom-MessagePort-close>close</a>();
@@ -76422,6 +76431,12 @@
 
      </li>
 
+     <li>
+
+      <p>Make <var title="">new ports</var> into a <a href=#dfn-read-only-array title=dfn-read-only-array>read only</a> array.</p>
+
+     </li>
+
      <li><p>Let the <code title=dom-MessageEvent-ports><a href=#dom-messageevent-ports>ports</a></code>
      attribute of the event be the <var title="">new ports</var>
      array.</li>
@@ -76478,9 +76493,9 @@
    attribute of the event have the value of <var
    title="">message</var>, the method's first argument.</p></li>
 
-   <li><p>Let the <code
-   title="dom-MessageEvent-ports">ports</code> attribute
-   of the event be an array containing only <var
+   <li><p>Let the <code title="dom-MessageEvent-ports">ports</code>
+   attribute of the event be a <span title="dfn-read-only-array">read
+   only</span> array containing only <var
    title="">port2</var>.</p></li>
 
    <li><p>Return <var title="">port1</var> from the method, but

Modified: source
===================================================================
--- source	2011-05-26 23:47:22 UTC (rev 6151)
+++ source	2011-05-27 00:24:04 UTC (rev 6152)
@@ -13,6 +13,13 @@
  !
  !-->
 <!--START validation-->
+<pre class="idl">
+ interface Blob { };
+ interface File : Blob { };
+ interface FileCallback { };
+ interface FileList { };
+ interface ArrayBuffer { };
+</pre>
 <!--START complete--><!--START epub-->
 <!--START html--><!--START dev-html-->
 
@@ -2425,8 +2432,9 @@
     required for conforming IDL fragments, as described in the Web IDL
     specification. <a href="#refsWEBIDL">[WEBIDL]</a></p>
 
-    <p>The terms <dfn>supported property indices</dfn> and
-    <dfn>supported property names</dfn> are used as defined in the
+    <p>The terms <dfn>supported property indices</dfn>, <dfn>supported
+    property names</dfn>, and <dfn title="dfn-read-only-array">read
+    only</dfn> (when applied to arrays) are used as defined in the
     WebIDL specification.</p>
 
     <p id="float-nan">Except where otherwise specified, if an IDL
@@ -10435,7 +10443,7 @@
            attribute DOMString <span title="dom-accessKey">accessKey</span>;
   readonly attribute DOMString <span title="dom-accessKeyLabel">accessKeyLabel</span>;
            attribute boolean <span title="dom-draggable">draggable</span>;
-  [PutForwards=<span title="dom-DOMSettableTokenList-value">value</span>] attribute <span>DOMSettableTokenList</span> <span title="dom-dropzone">dropzone</span>;
+  [PutForwards=<span title="dom-DOMSettableTokenList-value">value</span>] readonly attribute <span>DOMSettableTokenList</span> <span title="dom-dropzone">dropzone</span>;
            attribute DOMString <span title="dom-contentEditable">contentEditable</span>;
   readonly attribute boolean <span title="dom-isContentEditable">isContentEditable</span>;
            attribute <span>HTMLMenuElement</span> <span title="dom-contextMenu">contextMenu</span>;
@@ -38178,18 +38186,22 @@
   <span>TextMetrics</span> <span title="dom-context-2d-measureText">measureText</span>(in DOMString text);
 
   // drawing images
-  void <span title="dom-context-2d-drawImage">drawImage</span>(in <span>HTMLImageElement</span> image, in double dx, in double dy, in optional double dw, in double dh);
+  void <span title="dom-context-2d-drawImage">drawImage</span>(in <span>HTMLImageElement</span> image, in double dx, in double dy);
+  void <span title="dom-context-2d-drawImage">drawImage</span>(in <span>HTMLImageElement</span> image, in double dx, in double dy, in double dw, in double dh);
   void <span title="dom-context-2d-drawImage">drawImage</span>(in <span>HTMLImageElement</span> image, in double sx, in double sy, in double sw, in double sh, in double dx, in double dy, in double dw, in double dh);
-  void <span title="dom-context-2d-drawImage">drawImage</span>(in <span>HTMLCanvasElement</span> image, in double dx, in double dy, in optional double dw, in double dh);
+  void <span title="dom-context-2d-drawImage">drawImage</span>(in <span>HTMLCanvasElement</span> image, in double dx, in double dy);
+  void <span title="dom-context-2d-drawImage">drawImage</span>(in <span>HTMLCanvasElement</span> image, in double dx, in double dy, in double dw, in double dh);
   void <span title="dom-context-2d-drawImage">drawImage</span>(in <span>HTMLCanvasElement</span> image, in double sx, in double sy, in double sw, in double sh, in double dx, in double dy, in double dw, in double dh);
-  void <span title="dom-context-2d-drawImage">drawImage</span>(in <span>HTMLVideoElement</span> image, in double dx, in double dy, in optional double dw, in double dh);
+  void <span title="dom-context-2d-drawImage">drawImage</span>(in <span>HTMLVideoElement</span> image, in double dx, in double dy);
+  void <span title="dom-context-2d-drawImage">drawImage</span>(in <span>HTMLVideoElement</span> image, in double dx, in double dy, in double dw, in double dh);
   void <span title="dom-context-2d-drawImage">drawImage</span>(in <span>HTMLVideoElement</span> image, in double sx, in double sy, in double sw, in double sh, in double dx, in double dy, in double dw, in double dh);
 
   // pixel manipulation
   <span>ImageData</span> <span title="dom-context-2d-createImageData">createImageData</span>(in double sw, in double sh);
   <span>ImageData</span> <span title="dom-context-2d-createImageData">createImageData</span>(in <span>ImageData</span> imagedata);
   <span>ImageData</span> <span title="dom-context-2d-getImageData">getImageData</span>(in double sx, in double sy, in double sw, in double sh);
-  void <span title="dom-context-2d-putImageData">putImageData</span>(in <span>ImageData</span> imagedata, in double dx, in double dy, in optional double dirtyX, in double dirtyY, in double dirtyWidth, in double dirtyHeight);
+  void <span title="dom-context-2d-putImageData">putImageData</span>(in <span>ImageData</span> imagedata, in double dx, in double dy);
+  void <span title="dom-context-2d-putImageData">putImageData</span>(in <span>ImageData</span> imagedata, in double dx, in double dy, in double dirtyX, in double dirtyY, in double dirtyWidth, in double dirtyHeight);
 };
 
 interface <dfn>CanvasGradient</dfn> {
@@ -69477,7 +69489,7 @@
   any <span title="dom-showModalDialog">showModalDialog</span>(in DOMString url, in optional any argument<!--, in optional DOMString features-->);
 
 <!--END w3c-html--><!--POSTMSG-->  // <span>cross-document messaging</span>
-  void <span title="dom-window-postMessage">postMessage</span>(in any message, in DOMString targetOrigin, in optional <span>MessagePortArray</span> ports);
+  void <span title="dom-window-postMessage">postMessage</span>(in any message, in DOMString targetOrigin, in optional sequence<<span>MessagePort</span>> ports);
 <!--START w3c-html--><!--POSTMSG-->
   // <span>event handler IDL attributes</span>
            attribute <span>Function</span> <span title="handler-onabort">onabort</span>;
@@ -87072,7 +87084,7 @@
 
   <pre class="idl">[Supplemental, NoInterfaceObject]
 interface <dfn>DedicatedWorkerGlobalScope</dfn> : <span>WorkerGlobalScope</span> {
-  void <span title="dom-DedicatedWorkerGlobalScope-postMessage">postMessage</span>(in any message, in optional <span>MessagePortArray</span> ports);<!--
+  void <span title="dom-DedicatedWorkerGlobalScope-postMessage">postMessage</span>(in any message, in optional sequence<<span>MessagePort</span>> ports);<!--
   <span>MessagePort</span> <span title="dom-DedicatedWorkerGlobalScope-startConversation">startConversation</span>(in any message);-->
            attribute <span>Function</span> <span title="handler-DedicatedWorkerGlobalScope-onmessage">onmessage</span>;
 };</pre>
@@ -87714,7 +87726,7 @@
 interface <dfn>Worker</dfn> : <span>AbstractWorker</span> {
   void <span title="dom-Worker-terminate">terminate</span>();
 
-  void <span title="dom-Worker-postMessage">postMessage</span>(in any message, in optional <span>MessagePortArray</span> ports);<!--
+  void <span title="dom-Worker-postMessage">postMessage</span>(in any message, in optional sequence<<span>MessagePort</span>> ports);<!--
   <span>MessagePort</span> <span title="dom-Worker-startConversation">startConversation</span>(in any message);-->
            attribute <span>Function</span> <span title="handler-Worker-onmessage">onmessage</span>;
 };</pre>
@@ -88018,9 +88030,10 @@
        title="dom-MessageEvent-data">data</code> attribute whose value
        is the empty string and has a <code
        title="dom-MessageEvent-ports">ports</code> attribute whose
-       value is an array containing only the newly created port, and
-       <span>queue a task</span> to dispatch the event at <var
-       title="">worker global scope</var>.</p></li>
+       value is a <span title="dfn-read-only-array">read only</span>
+       array containing only the newly created port, and <span>queue a
+       task</span> to dispatch the event at <var title="">worker
+       global scope</var>.</p></li>
 
        <li>
 
@@ -88084,8 +88097,9 @@
    title="dom-MessageEvent-data">data</code> attribute whose value is
    the empty string and has a <code
    title="dom-MessageEvent-ports">ports</code> attribute whose value
-   is an array containing only the newly created port, and <span>queue
-   a task</span> to dispatch the event at <var title="">worker global
+   is a <span title="dfn-read-only-array">read only</span> array
+   containing only the newly created port, and <span>queue a
+   task</span> to dispatch the event at <var title="">worker global
    scope</var>.</p></li>
 
    <li>
@@ -88410,8 +88424,8 @@
   readonly attribute DOMString <span title="dom-MessageEvent-origin">origin</span>;
   readonly attribute DOMString <span title="dom-MessageEvent-lastEventId">lastEventId</span>;
   readonly attribute <span>WindowProxy</span> <span title="dom-MessageEvent-source">source</span>;
-  readonly attribute <span>MessagePortArray</span> <span title="dom-MessageEvent-ports">ports</span>;
-  void <span title="dom-MessageEvent-initMessageEvent">initMessageEvent</span>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any dataArg, in DOMString originArg, in DOMString lastEventIdArg, in <span>WindowProxy</span> sourceArg, in <span>MessagePortArray</span> portsArg);
+  readonly attribute <span>MessagePort</span>[] <span title="dom-MessageEvent-ports">ports</span>;
+  void <span title="dom-MessageEvent-initMessageEvent">initMessageEvent</span>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any dataArg, in DOMString originArg, in DOMString lastEventIdArg, in <span>WindowProxy</span> sourceArg, in sequence<<span>MessagePort</span>> portsArg);
 };</pre>
 
   <dl class="domintro">
@@ -88456,7 +88470,7 @@
 
    <dd>
 
-    <p>Returns the <code>MessagePortArray</code> sent with the
+    <p>Returns the <code>MessagePort</code> array sent with the
     message, for <span>cross-document messaging</span> and
     <span>channel messaging</span>.</p>
 
@@ -88499,7 +88513,7 @@
   <p>The <dfn
   title="dom-MessageEvent-ports"><code>ports</code></dfn>
   attribute represents, in <span>cross-document messaging</span> and
-  <span>channel messaging</span> the <code>MessagePortArray</code>
+  <span>channel messaging</span> the <code>MessagePort</code> array
   being sent, if any.</p>
 
   <p>Except where otherwise specified, when the user agent creates and
@@ -89465,7 +89479,7 @@
 
   // messaging
            attribute <span>Function</span> <span title="handler-WebSocket-onmessage">onmessage</span>;
-           attribute Object <span title="dom-WebSocket-binaryType">binaryType</span>;
+           attribute object <span title="dom-WebSocket-binaryType">binaryType</span>;
   void <span title="dom-WebSocket-send">send</span>(in DOMString data);
   void <span title="dom-WebSocket-send">send</span>(in <span>ArrayBuffer</span> data);
   void <span title="dom-WebSocket-send">send</span>(in <span>Blob</span> data);
@@ -90338,6 +90352,13 @@
 
    <li>
 
+    <p>Make <var title="">new ports</var> into a <span
+    title="dfn-read-only-array">read only</span> array.</p>
+
+   </li>
+
+   <li>
+
     <p>Return from the <code
     title="dom-window-postMessage">postMessage()</code> method, but
     asynchronously continue running these steps.</p>
@@ -90534,11 +90555,9 @@
   <p>Each channel has two message ports. Data sent through one port is
   received by the other port, and vice versa.</p>
 
-  <pre class="idl">typedef sequence<MessagePort> <dfn>MessagePortArray</dfn>;
-
-interface <dfn>MessagePort</dfn> {
+  <pre class="idl">interface <dfn>MessagePort</dfn> {
 <!-- v2-onclose  readonly attribute boolean <span title="dom-MessagePort-active">active</span>;
--->  void <span title="dom-MessagePort-postMessage">postMessage</span>(in any message, in optional <span>MessagePortArray</span> ports);<!--
+-->  void <span title="dom-MessagePort-postMessage">postMessage</span>(in any message, in optional sequence<<span>MessagePort</span>> ports);<!--
   <span>MessagePort</span> <span title="dom-MessagePort-startConversation">startConversation</span>(in any message);-->
   void <span title="dom-MessagePort-start">start</span>();
   void <span title="dom-MessagePort-close">close</span>();
@@ -90754,6 +90773,13 @@
 
      </li>
 
+     <li>
+
+      <p>Make <var title="">new ports</var> into a <span
+      title="dfn-read-only-array">read only</span> array.</p>
+
+     </li>
+
      <li><p>Let the <code
      title="dom-MessageEvent-ports">ports</code>
      attribute of the event be the <var title="">new ports</var>
@@ -90816,9 +90842,9 @@
    attribute of the event have the value of <var
    title="">message</var>, the method's first argument.</p></li>
 
-   <li><p>Let the <code
-   title="dom-MessageEvent-ports">ports</code> attribute
-   of the event be an array containing only <var
+   <li><p>Let the <code title="dom-MessageEvent-ports">ports</code>
+   attribute of the event be a <span title="dfn-read-only-array">read
+   only</span> array containing only <var
    title="">port2</var>.</p></li>
 
    <li><p>Return <var title="">port1</var> from the method, but




More information about the Commit-Watchers mailing list