[html5] r6268 - [giow] (1) WebSocket close code can fit in an unsigned short, so use that instea [...]
whatwg at whatwg.org
whatwg at whatwg.org
Tue Jun 21 15:42:04 PDT 2011
Author: ianh
Date: 2011-06-21 15:42:03 -0700 (Tue, 21 Jun 2011)
New Revision: 6268
Modified:
complete.html
source
Log:
[giow] (1) WebSocket close code can fit in an unsigned short, so use that instead.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12912
Modified: complete.html
===================================================================
--- complete.html 2011-06-21 22:09:28 UTC (rev 6267)
+++ complete.html 2011-06-21 22:42:03 UTC (rev 6268)
@@ -79634,7 +79634,7 @@
attribute <a href=#function>Function</a>? <a href=#handler-websocket-onclose title=handler-WebSocket-onclose>onclose</a>;
readonly attribute DOMString <a href=#dom-websocket-extensions title=dom-WebSocket-extensions>extensions</a>;
readonly attribute DOMString <a href=#dom-websocket-protocol title=dom-WebSocket-protocol>protocol</a>;
- void <a href=#dom-websocket-close title=dom-WebSocket-close>close</a>(in optional unsigned long code, in optional DOMString reason);
+ void <a href=#dom-websocket-close title=dom-WebSocket-close>close</a>([Clamp] in optional unsigned short code, in optional DOMString reason);
// messaging
attribute <a href=#function>Function</a>? <a href=#handler-websocket-onmessage title=handler-WebSocket-onmessage>onmessage</a>;
@@ -80133,9 +80133,9 @@
<pre class=idl>interface <dfn id=closeevent>CloseEvent</dfn> : <a href=#event>Event</a> {
readonly attribute boolean <a href=#dom-closeevent-wasclean title=dom-CloseEvent-wasClean>wasClean</a>;
- readonly attribute unsigned long <span title=dom-WebSocket-code>code</span>;
+ readonly attribute unsigned short <a href=#dom-closeevent-code title=dom-CloseEvent-code>code</a>;
readonly attribute DOMString <span title=dom-WebSocket-reason>reason</span>;
- void <a href=#dom-closeevent-initcloseevent title=dom-CloseEvent-initCloseEvent>initCloseEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in boolean wasCleanArg, in unsigned long codeArg, in DOMString reasonArg);
+ void <a href=#dom-closeevent-initcloseevent title=dom-CloseEvent-initCloseEvent>initCloseEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in boolean wasCleanArg, in unsigned short codeArg, in DOMString reasonArg);
};</pre>
<p>The <dfn id=dom-closeevent-initcloseevent title=dom-CloseEvent-initCloseEvent><code>initCloseEvent()</code></dfn>
Modified: source
===================================================================
--- source 2011-06-21 22:09:28 UTC (rev 6267)
+++ source 2011-06-21 22:42:03 UTC (rev 6268)
@@ -90266,7 +90266,7 @@
attribute <span>Function</span>? <span title="handler-WebSocket-onclose">onclose</span>;
readonly attribute DOMString <span title="dom-WebSocket-extensions">extensions</span>;
readonly attribute DOMString <span title="dom-WebSocket-protocol">protocol</span>;
- void <span title="dom-WebSocket-close">close</span>(in optional unsigned long code, in optional DOMString reason);
+ void <span title="dom-WebSocket-close">close</span>([Clamp] in optional unsigned short code, in optional DOMString reason);
// messaging
attribute <span>Function</span>? <span title="handler-WebSocket-onmessage">onmessage</span>;
@@ -90906,9 +90906,9 @@
<pre class="idl">interface <dfn>CloseEvent</dfn> : <span>Event</span> {
readonly attribute boolean <span title="dom-CloseEvent-wasClean">wasClean</span>;
- readonly attribute unsigned long <span title="dom-WebSocket-code">code</span>;
+ readonly attribute unsigned short <span title="dom-CloseEvent-code">code</span>;
readonly attribute DOMString <span title="dom-WebSocket-reason">reason</span>;
- void <span title="dom-CloseEvent-initCloseEvent">initCloseEvent</span>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in boolean wasCleanArg, in unsigned long codeArg, in DOMString reasonArg);
+ void <span title="dom-CloseEvent-initCloseEvent">initCloseEvent</span>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in boolean wasCleanArg, in unsigned short codeArg, in DOMString reasonArg);
};</pre>
<p>The <dfn
More information about the Commit-Watchers
mailing list