[html5] r6270 - [giow] (0) Unpaired surrogates should throw an exception in close, like in send( [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Jun 21 16:01:19 PDT 2011


Author: ianh
Date: 2011-06-21 16:01:17 -0700 (Tue, 21 Jun 2011)
New Revision: 6270

Modified:
   complete.html
   source
Log:
[giow] (0) Unpaired surrogates should throw an exception in close, like in send(), so we don't ask the protocol to send invalid utf-8
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12913

Modified: complete.html
===================================================================
--- complete.html	2011-06-21 22:54:24 UTC (rev 6269)
+++ complete.html	2011-06-21 23:01:17 UTC (rev 6270)
@@ -79800,6 +79800,10 @@
    <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception and abort these
    steps.</li>
 
+   <li><p>If the method's second argument has any unpaired surrogates,
+   then throw an <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort these
+   steps.</li>
+
    <li><p>If the method's second argument is present, then let <var title="">reason</var> be the result of encoding that argument as
    UTF-8. If <var title="">reason</var> is longer than 123 bytes, then
    throw an <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort these steps.

Modified: source
===================================================================
--- source	2011-06-21 22:54:24 UTC (rev 6269)
+++ source	2011-06-21 23:01:17 UTC (rev 6270)
@@ -90462,6 +90462,10 @@
    <code>INVALID_ACCESS_ERR</code> exception and abort these
    steps.</p></li>
 
+   <li><p>If the method's second argument has any unpaired surrogates,
+   then throw an <code>SYNTAX_ERR</code> exception and abort these
+   steps.</p></li>
+
    <li><p>If the method's second argument is present, then let <var
    title="">reason</var> be the result of encoding that argument as
    UTF-8. If <var title="">reason</var> is longer than 123 bytes, then




More information about the Commit-Watchers mailing list