[html5] r8305 - [giow] (3) WebSocket.url should be consistent with how the URL is used in the fi [...]
whatwg at whatwg.org
whatwg at whatwg.org
Thu Nov 21 14:57:50 PST 2013
Author: ianh
Date: 2013-11-21 14:57:48 -0800 (Thu, 21 Nov 2013)
New Revision: 8305
Modified:
complete.html
index
source
Log:
[giow] (3) WebSocket.url should be consistent with how the URL is used in the first place.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=23821
Affected topics: HTML
Modified: complete.html
===================================================================
--- complete.html 2013-11-20 22:01:59 UTC (rev 8304)
+++ complete.html 2013-11-21 22:57:48 UTC (rev 8305)
@@ -298,7 +298,7 @@
<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 20 November 2013</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 21 November 2013</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>
@@ -6672,20 +6672,24 @@
<p>Let <var title="">encoding</var> be determined as follows:</p>
- <dl class=switch><dt>If the URL had a character encoding defined when the URL was created or defined</dt>
+ <dl class=switch><dt>If the URL had a character encoding defined when the URL was created or defined or when
+ this algorithm was invoked</dt>
<dd>The URL character encoding is as defined.</dd>
+
<dt>If the URL came from a script (e.g. as an argument to a method)</dt>
<!--CLEANUP-->
<dd>The URL character encoding is the <a href=#api-url-character-encoding>API URL character encoding</a> specified by the script's <a href=#settings-object>settings object</a>.</dd>
+
<dt>If the URL came from a DOM node (e.g. from an element)</dt>
<dd>The node has a <code><a href=#document>Document</a></code>, and the URL character encoding is the
<a href="#document's-character-encoding">document's character encoding</a>.</dd>
+
</dl></li>
<li><p>If <var title="">encoding</var> is <a href=#a-utf-16-encoding>a UTF-16 encoding</a>, then change the value
@@ -79103,8 +79107,8 @@
</ol><hr><p>The <dfn id=dom-websocket-url title=dom-WebSocket-url><code>url</code></dfn> attribute must return the result of
<a href=#resolve-a-url title="resolve a url">resolving</a> the <a href=#url>URL</a> that was passed to the
- constructor. (It doesn't matter what it is resolved relative to, since we already know it is an
- <a href=#absolute-url>absolute URL</a>.)</p>
+ constructor, with the URL character encoding set to UTF-8. (It doesn't matter what it is resolved
+ relative to, since we already know it is an <a href=#absolute-url>absolute URL</a>.)</p>
<p>The <dfn id=dom-websocket-readystate title=dom-WebSocket-readyState><code>readyState</code></dfn> attribute represents
the state of the connection. It can have the following values:</p>
@@ -101343,6 +101347,7 @@
<dt id=refsRFC3490>[RFC3490]</dt>
<dd><cite><a href=http://tools.ietf.org/html/rfc3490>Internationalizing Domain Names in Applications (IDNA)</a></cite>, P. Faltstrom, P. Hoffman, A. Costello. IETF.</dd>
+<!--CLEANUP--><!--replace references to this with references to encodings standard-->
<dt id=refsRFC3629>[RFC3629]</dt>
<dd><cite><a href=http://tools.ietf.org/html/rfc3629>UTF-8, a transformation format of ISO 10646</a></cite>, F. Yergeau. IETF.</dd>
Modified: index
===================================================================
--- index 2013-11-20 22:01:59 UTC (rev 8304)
+++ index 2013-11-21 22:57:48 UTC (rev 8305)
@@ -298,7 +298,7 @@
<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 20 November 2013</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 21 November 2013</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>
@@ -6672,20 +6672,24 @@
<p>Let <var title="">encoding</var> be determined as follows:</p>
- <dl class=switch><dt>If the URL had a character encoding defined when the URL was created or defined</dt>
+ <dl class=switch><dt>If the URL had a character encoding defined when the URL was created or defined or when
+ this algorithm was invoked</dt>
<dd>The URL character encoding is as defined.</dd>
+
<dt>If the URL came from a script (e.g. as an argument to a method)</dt>
<!--CLEANUP-->
<dd>The URL character encoding is the <a href=#api-url-character-encoding>API URL character encoding</a> specified by the script's <a href=#settings-object>settings object</a>.</dd>
+
<dt>If the URL came from a DOM node (e.g. from an element)</dt>
<dd>The node has a <code><a href=#document>Document</a></code>, and the URL character encoding is the
<a href="#document's-character-encoding">document's character encoding</a>.</dd>
+
</dl></li>
<li><p>If <var title="">encoding</var> is <a href=#a-utf-16-encoding>a UTF-16 encoding</a>, then change the value
@@ -79103,8 +79107,8 @@
</ol><hr><p>The <dfn id=dom-websocket-url title=dom-WebSocket-url><code>url</code></dfn> attribute must return the result of
<a href=#resolve-a-url title="resolve a url">resolving</a> the <a href=#url>URL</a> that was passed to the
- constructor. (It doesn't matter what it is resolved relative to, since we already know it is an
- <a href=#absolute-url>absolute URL</a>.)</p>
+ constructor, with the URL character encoding set to UTF-8. (It doesn't matter what it is resolved
+ relative to, since we already know it is an <a href=#absolute-url>absolute URL</a>.)</p>
<p>The <dfn id=dom-websocket-readystate title=dom-WebSocket-readyState><code>readyState</code></dfn> attribute represents
the state of the connection. It can have the following values:</p>
@@ -101343,6 +101347,7 @@
<dt id=refsRFC3490>[RFC3490]</dt>
<dd><cite><a href=http://tools.ietf.org/html/rfc3490>Internationalizing Domain Names in Applications (IDNA)</a></cite>, P. Faltstrom, P. Hoffman, A. Costello. IETF.</dd>
+<!--CLEANUP--><!--replace references to this with references to encodings standard-->
<dt id=refsRFC3629>[RFC3629]</dt>
<dd><cite><a href=http://tools.ietf.org/html/rfc3629>UTF-8, a transformation format of ISO 10646</a></cite>, F. Yergeau. IETF.</dd>
Modified: source
===================================================================
--- source 2013-11-20 22:01:59 UTC (rev 8304)
+++ source 2013-11-21 22:57:48 UTC (rev 8305)
@@ -6040,20 +6040,25 @@
<dl class="switch">
- <dt>If the URL had a character encoding defined when the URL was created or defined</dt>
+ <dt>If the URL had a character encoding defined when the URL was created or defined or when
+ this algorithm was invoked</dt>
+
<dd>The URL character encoding is as defined.</dd>
+
<dt>If the URL came from a script (e.g. as an argument to a method)</dt>
<!--CLEANUP-->
<dd>The URL character encoding is the <span>API URL character encoding</span> specified by the script's <span>settings object</span>.</dd>
+
<dt>If the URL came from a DOM node (e.g. from an element)</dt>
<dd>The node has a <code>Document</code>, and the URL character encoding is the
<span>document's character encoding</span>.</dd>
+
</dl>
</li>
@@ -88599,8 +88604,8 @@
<p>The <dfn data-x="dom-WebSocket-url"><code>url</code></dfn> attribute must return the result of
<span data-x="resolve a url">resolving</span> the <span>URL</span> that was passed to the
- constructor. (It doesn't matter what it is resolved relative to, since we already know it is an
- <span>absolute URL</span>.)</p>
+ constructor, with the URL character encoding set to UTF-8. (It doesn't matter what it is resolved
+ relative to, since we already know it is an <span>absolute URL</span>.)</p>
<p>The <dfn data-x="dom-WebSocket-readyState"><code>readyState</code></dfn> attribute represents
the state of the connection. It can have the following values:</p>
@@ -113204,6 +113209,7 @@
<dt id="refsRFC3490">[RFC3490]</dt>
<dd><cite><a href="http://tools.ietf.org/html/rfc3490">Internationalizing Domain Names in Applications (IDNA)</a></cite>, P. Faltstrom, P. Hoffman, A. Costello. IETF.</dd>
+<!--CLEANUP--><!--replace references to this with references to encodings standard-->
<dt id="refsRFC3629">[RFC3629]</dt>
<dd><cite><a href="http://tools.ietf.org/html/rfc3629">UTF-8, a transformation format of ISO 10646</a></cite>, F. Yergeau. IETF.</dd>
More information about the Commit-Watchers
mailing list