[html5] r8381 - [e] (0) Defer to URL spec for IDNA stuff. Fixing https://www.w3.org/Bugs/Public/ [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Jan 7 13:12:09 PST 2014


Author: ianh
Date: 2014-01-07 13:12:07 -0800 (Tue, 07 Jan 2014)
New Revision: 8381

Modified:
   complete.html
   index
   source
Log:
[e] (0) Defer to URL spec for IDNA stuff.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=23005
Affected topics: HTML, Security

Modified: complete.html
===================================================================
--- complete.html	2014-01-06 23:46:14 UTC (rev 8380)
+++ complete.html	2014-01-07 21:12:07 UTC (rev 8381)
@@ -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 6 January 2014</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 7 January 2014</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>
@@ -3543,7 +3543,7 @@
 
    <dd>
 
-    <p>The following terms are defined in the URL standard: <a href=#refsURL>[URL]</a></p>
+    <p>The following terms are defined in the WHATWG URL standard: <a href=#refsURL>[URL]</a></p>
 
     <ul class=brief><li><dfn id=url>URL</dfn>
      <li><dfn id=absolute-url>Absolute URL</dfn>
@@ -3567,6 +3567,8 @@
      <li><dfn id=utf-8-percent-encode>UTF-8 percent encode</dfn>
      <li><dfn id=percent-decode>Percent decode</dfn>
      <li><dfn id=decoder-error>Decoder error</dfn>
+     <li>The <dfn id=domain-label-to-ascii>domain label to ASCII</dfn> algorithm</li>
+     <li>The <dfn id=domain-label-to-unicode>domain label to Unicode</dfn> algorithm</li>
      <li><dfn id=urlutils><code>URLUtils</code></dfn> interface
      <li><dfn id=urlutilsreadonly><code>URLUtilsReadOnly</code></dfn> interface
      <li><dfn id=dom-url-href title=dom-url-href><code>href</code> attribute</dfn>
@@ -65620,9 +65622,10 @@
 
    <li><p>Append the string "<code title="">://</code>" to <var title="">result</var>.</li>
 
-   <li><p>Apply the IDNA ToUnicode algorithm to each component of the host part of the
+<!--CLEANUP-->
+   <li><p>Apply the <a href=#domain-label-to-unicode>domain label to Unicode</a> algorithm to each component of the host part of the
    <a href=#origin>origin</a> tuple, and append the results — each component, in the same order,
-   separated by U+002E FULL STOP characters (.) — to <var title="">result</var>. <a href=#refsRFC3490>[RFC3490]</a></li> <!--XXX-23005-->
+   separated by U+002E FULL STOP characters (.) — to <var title="">result</var>. <a href=#refsURL>[URL]</a></li>
 
    <li><p>If the port part of the <a href=#origin>origin</a> tuple gives a port that is different from the
    default port for the protocol given by the scheme part of the <a href=#origin>origin</a> tuple, then
@@ -65643,12 +65646,14 @@
 
    <li>
 
-    <p>Apply the IDNA ToASCII algorithm to the host part of the <a href=#origin>origin</a> tuple, with both
-    the AllowUnassigned and UseSTD3ASCIIRules flags set, and append the results to <var title="">result</var>.</p> <!--XXX-23005-->
+    <p>Apply the <a href=#domain-label-to-ascii>domain label to ASCII</a> algorithm to each component of the host part of
+    the <a href=#origin>origin</a> tuple, and append the results — each component, in the same order,
+    separated by U+002E FULL STOP characters (.) — to <var title="">result</var>. <a href=#refsURL>[URL]</a></p>
 
-    <p>If ToASCII fails to convert one of the components of the string, e.g. because it is too long
-    or because it contains invalid characters, then return the empty string and abort these steps.
-    <a href=#refsRFC3490>[RFC3490]</a></p>
+<!--CLEANUP-->
+    <p>If the ToASCII algorithm used by the <a href=#domain-label-to-ascii>domain label to ASCII</a> algorithm fails to convert one of the components of the string, e.g. because it is too long
+    or because it contains invalid characters, then throw a <code><a href=#securityerror>SecurityError</a></code> exception and
+    abort these steps. <a href=#refsRFC3490>[RFC3490]</a></p>
 
    </li>
 
@@ -65732,11 +65737,16 @@
    <li>
 
     <p>If the new value is an IPv4 or IPv6 address, let <var title="">new value</var> be the new
-    value. Otherwise, apply the IDNA ToASCII algorithm to the new value, with both the
-    AllowUnassigned and UseSTD3ASCIIRules flags set, and let <var title="">new value</var> be the
-    result of the ToASCII algorithm.</p> <!--XXX-23005-->
+    value.</p>
 
-    <p>If ToASCII fails to convert one of the components of the string, e.g. because it is too long
+    <p>Otherwise, <a href=#strictly-split-a-string title="strictly split a string">strictly split</a> the new value on
+    U+002E FULL STOP characters (.), apply the <a href=#domain-label-to-ascii>domain label to ASCII</a> algorithm to each
+    returned token, and let <var title="">new value</var> be the result of concatenating the
+    results of applying that algorithm to each token, in the same order, separated by U+002E FULL
+    STOP characters (.). <a href=#refsURL>[URL]</a></p>
+
+    <!--CLEANUP-->
+    <p>If the ToASCII algorithm used by the <a href=#domain-label-to-ascii>domain label to ASCII</a> algorithm fails to convert one of the components of the string, e.g. because it is too long
     or because it contains invalid characters, then throw a <code><a href=#securityerror>SecurityError</a></code> exception and
     abort these steps. <a href=#refsRFC3490>[RFC3490]</a></p>
 
@@ -65774,9 +65784,8 @@
       the Public Suffix List, then throw a <code><a href=#securityerror>SecurityError</a></code> exception and abort these
       steps. <a href=#refsPSL>[PSL]</a></p>
 
-      <p>Suffixes must be compared after applying the IDNA ToASCII algorithm to them, with both the
-      AllowUnassigned and UseSTD3ASCIIRules flags set, in an <a href=#ascii-case-insensitive>ASCII case-insensitive</a>
-      manner. <a href=#refsRFC3490>[RFC3490]</a></p> <!--XXX-23005-->
+      <p>Suffixes must be compared in an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> manner, after applying
+      the <a href=#domain-label-to-ascii>domain label to ASCII</a> algorithm to their individual components, . <a href=#refsURL>[URL]</a></p>
 
      </li>
 

Modified: index
===================================================================
--- index	2014-01-06 23:46:14 UTC (rev 8380)
+++ index	2014-01-07 21:12:07 UTC (rev 8381)
@@ -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 6 January 2014</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 7 January 2014</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>
@@ -3543,7 +3543,7 @@
 
    <dd>
 
-    <p>The following terms are defined in the URL standard: <a href=#refsURL>[URL]</a></p>
+    <p>The following terms are defined in the WHATWG URL standard: <a href=#refsURL>[URL]</a></p>
 
     <ul class=brief><li><dfn id=url>URL</dfn>
      <li><dfn id=absolute-url>Absolute URL</dfn>
@@ -3567,6 +3567,8 @@
      <li><dfn id=utf-8-percent-encode>UTF-8 percent encode</dfn>
      <li><dfn id=percent-decode>Percent decode</dfn>
      <li><dfn id=decoder-error>Decoder error</dfn>
+     <li>The <dfn id=domain-label-to-ascii>domain label to ASCII</dfn> algorithm</li>
+     <li>The <dfn id=domain-label-to-unicode>domain label to Unicode</dfn> algorithm</li>
      <li><dfn id=urlutils><code>URLUtils</code></dfn> interface
      <li><dfn id=urlutilsreadonly><code>URLUtilsReadOnly</code></dfn> interface
      <li><dfn id=dom-url-href title=dom-url-href><code>href</code> attribute</dfn>
@@ -65620,9 +65622,10 @@
 
    <li><p>Append the string "<code title="">://</code>" to <var title="">result</var>.</li>
 
-   <li><p>Apply the IDNA ToUnicode algorithm to each component of the host part of the
+<!--CLEANUP-->
+   <li><p>Apply the <a href=#domain-label-to-unicode>domain label to Unicode</a> algorithm to each component of the host part of the
    <a href=#origin>origin</a> tuple, and append the results — each component, in the same order,
-   separated by U+002E FULL STOP characters (.) — to <var title="">result</var>. <a href=#refsRFC3490>[RFC3490]</a></li> <!--XXX-23005-->
+   separated by U+002E FULL STOP characters (.) — to <var title="">result</var>. <a href=#refsURL>[URL]</a></li>
 
    <li><p>If the port part of the <a href=#origin>origin</a> tuple gives a port that is different from the
    default port for the protocol given by the scheme part of the <a href=#origin>origin</a> tuple, then
@@ -65643,12 +65646,14 @@
 
    <li>
 
-    <p>Apply the IDNA ToASCII algorithm to the host part of the <a href=#origin>origin</a> tuple, with both
-    the AllowUnassigned and UseSTD3ASCIIRules flags set, and append the results to <var title="">result</var>.</p> <!--XXX-23005-->
+    <p>Apply the <a href=#domain-label-to-ascii>domain label to ASCII</a> algorithm to each component of the host part of
+    the <a href=#origin>origin</a> tuple, and append the results — each component, in the same order,
+    separated by U+002E FULL STOP characters (.) — to <var title="">result</var>. <a href=#refsURL>[URL]</a></p>
 
-    <p>If ToASCII fails to convert one of the components of the string, e.g. because it is too long
-    or because it contains invalid characters, then return the empty string and abort these steps.
-    <a href=#refsRFC3490>[RFC3490]</a></p>
+<!--CLEANUP-->
+    <p>If the ToASCII algorithm used by the <a href=#domain-label-to-ascii>domain label to ASCII</a> algorithm fails to convert one of the components of the string, e.g. because it is too long
+    or because it contains invalid characters, then throw a <code><a href=#securityerror>SecurityError</a></code> exception and
+    abort these steps. <a href=#refsRFC3490>[RFC3490]</a></p>
 
    </li>
 
@@ -65732,11 +65737,16 @@
    <li>
 
     <p>If the new value is an IPv4 or IPv6 address, let <var title="">new value</var> be the new
-    value. Otherwise, apply the IDNA ToASCII algorithm to the new value, with both the
-    AllowUnassigned and UseSTD3ASCIIRules flags set, and let <var title="">new value</var> be the
-    result of the ToASCII algorithm.</p> <!--XXX-23005-->
+    value.</p>
 
-    <p>If ToASCII fails to convert one of the components of the string, e.g. because it is too long
+    <p>Otherwise, <a href=#strictly-split-a-string title="strictly split a string">strictly split</a> the new value on
+    U+002E FULL STOP characters (.), apply the <a href=#domain-label-to-ascii>domain label to ASCII</a> algorithm to each
+    returned token, and let <var title="">new value</var> be the result of concatenating the
+    results of applying that algorithm to each token, in the same order, separated by U+002E FULL
+    STOP characters (.). <a href=#refsURL>[URL]</a></p>
+
+    <!--CLEANUP-->
+    <p>If the ToASCII algorithm used by the <a href=#domain-label-to-ascii>domain label to ASCII</a> algorithm fails to convert one of the components of the string, e.g. because it is too long
     or because it contains invalid characters, then throw a <code><a href=#securityerror>SecurityError</a></code> exception and
     abort these steps. <a href=#refsRFC3490>[RFC3490]</a></p>
 
@@ -65774,9 +65784,8 @@
       the Public Suffix List, then throw a <code><a href=#securityerror>SecurityError</a></code> exception and abort these
       steps. <a href=#refsPSL>[PSL]</a></p>
 
-      <p>Suffixes must be compared after applying the IDNA ToASCII algorithm to them, with both the
-      AllowUnassigned and UseSTD3ASCIIRules flags set, in an <a href=#ascii-case-insensitive>ASCII case-insensitive</a>
-      manner. <a href=#refsRFC3490>[RFC3490]</a></p> <!--XXX-23005-->
+      <p>Suffixes must be compared in an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> manner, after applying
+      the <a href=#domain-label-to-ascii>domain label to ASCII</a> algorithm to their individual components, . <a href=#refsURL>[URL]</a></p>
 
      </li>
 

Modified: source
===================================================================
--- source	2014-01-06 23:46:14 UTC (rev 8380)
+++ source	2014-01-07 21:12:07 UTC (rev 8381)
@@ -2273,7 +2273,7 @@
 
    <dd>
 
-    <p>The following terms are defined in the URL standard: <a href="#refsURL">[URL]</a></p>
+    <p>The following terms are defined in the WHATWG URL standard: <a href="#refsURL">[URL]</a></p>
 
     <ul class="brief">
      <li><dfn>URL</dfn>
@@ -2298,6 +2298,8 @@
      <li><dfn>UTF-8 percent encode</dfn>
      <li><dfn>Percent decode</dfn>
      <li><dfn>Decoder error</dfn>
+     <li>The <dfn>domain label to ASCII</dfn> algorithm</li>
+     <li>The <dfn>domain label to Unicode</dfn> algorithm</li>
      <li><dfn><code>URLUtils</code></dfn> interface
      <li><dfn><code>URLUtilsReadOnly</code></dfn> interface
      <li><dfn data-x="dom-url-href"><code>href</code> attribute</dfn>
@@ -73092,10 +73094,11 @@
 
    <li><p>Append the string "<code data-x="">://</code>" to <var data-x="">result</var>.</p></li>
 
-   <li><p>Apply the IDNA ToUnicode algorithm to each component of the host part of the
+<!--CLEANUP-->
+   <li><p>Apply the <span>domain label to Unicode</span> algorithm to each component of the host part of the
    <span>origin</span> tuple, and append the results — each component, in the same order,
    separated by U+002E FULL STOP characters (.) — to <var data-x="">result</var>. <a
-   href="#refsRFC3490">[RFC3490]</a></p></li> <!--XXX-23005-->
+   href="#refsURL">[URL]</a></p></li>
 
    <li><p>If the port part of the <span>origin</span> tuple gives a port that is different from the
    default port for the protocol given by the scheme part of the <span>origin</span> tuple, then
@@ -73122,13 +73125,15 @@
 
    <li>
 
-    <p>Apply the IDNA ToASCII algorithm to the host part of the <span>origin</span> tuple, with both
-    the AllowUnassigned and UseSTD3ASCIIRules flags set, and append the results to <var
-    data-x="">result</var>.</p> <!--XXX-23005-->
+    <p>Apply the <span>domain label to ASCII</span> algorithm to each component of the host part of
+    the <span>origin</span> tuple, and append the results — each component, in the same order,
+    separated by U+002E FULL STOP characters (.) — to <var data-x="">result</var>. <a
+    href="#refsURL">[URL]</a></p>
 
-    <p>If ToASCII fails to convert one of the components of the string, e.g. because it is too long
-    or because it contains invalid characters, then return the empty string and abort these steps.
-    <a href="#refsRFC3490">[RFC3490]</a></p>
+<!--CLEANUP-->
+    <p>If the ToASCII algorithm used by the <span>domain label to ASCII</span> algorithm fails to convert one of the components of the string, e.g. because it is too long
+    or because it contains invalid characters, then throw a <code>SecurityError</code> exception and
+    abort these steps. <a href="#refsRFC3490">[RFC3490]</a></p>
 
    </li>
 
@@ -73227,11 +73232,16 @@
    <li>
 
     <p>If the new value is an IPv4 or IPv6 address, let <var data-x="">new value</var> be the new
-    value. Otherwise, apply the IDNA ToASCII algorithm to the new value, with both the
-    AllowUnassigned and UseSTD3ASCIIRules flags set, and let <var data-x="">new value</var> be the
-    result of the ToASCII algorithm.</p> <!--XXX-23005-->
+    value.</p>
 
-    <p>If ToASCII fails to convert one of the components of the string, e.g. because it is too long
+    <p>Otherwise, <span data-x="strictly split a string">strictly split</span> the new value on
+    U+002E FULL STOP characters (.), apply the <span>domain label to ASCII</span> algorithm to each
+    returned token, and let <var data-x="">new value</var> be the result of concatenating the
+    results of applying that algorithm to each token, in the same order, separated by U+002E FULL
+    STOP characters (.). <a href="#refsURL">[URL]</a></p>
+
+    <!--CLEANUP-->
+    <p>If the ToASCII algorithm used by the <span>domain label to ASCII</span> algorithm fails to convert one of the components of the string, e.g. because it is too long
     or because it contains invalid characters, then throw a <code>SecurityError</code> exception and
     abort these steps. <a href="#refsRFC3490">[RFC3490]</a></p>
 
@@ -73273,9 +73283,9 @@
       the Public Suffix List, then throw a <code>SecurityError</code> exception and abort these
       steps. <a href="#refsPSL">[PSL]</a></p>
 
-      <p>Suffixes must be compared after applying the IDNA ToASCII algorithm to them, with both the
-      AllowUnassigned and UseSTD3ASCIIRules flags set, in an <span>ASCII case-insensitive</span>
-      manner. <a href="#refsRFC3490">[RFC3490]</a></p> <!--XXX-23005-->
+      <p>Suffixes must be compared in an <span>ASCII case-insensitive</span> manner, after applying
+      the <span>domain label to ASCII</span> algorithm to their individual components, . <a
+      href="#refsURL">[URL]</a></p>
 
      </li>
 




More information about the Commit-Watchers mailing list