[html5] r1505 - /

whatwg at whatwg.org whatwg at whatwg.org
Mon Apr 28 18:34:06 PDT 2008


Author: ianh
Date: 2008-04-28 18:34:05 -0700 (Mon, 28 Apr 2008)
New Revision: 1505

Modified:
   index
   source
Log:
[e] (0) Minor editorial fixups in document.domain-related changes.

Modified: index
===================================================================
--- index	2008-04-29 01:22:39 UTC (rev 1504)
+++ index	2008-04-29 01:34:05 UTC (rev 1505)
@@ -27262,8 +27262,8 @@
 
   <p>The <dfn id=domain0 title="the document's domain">domain</dfn> of a
    <code>Document</code> is the host part of the document's <a
-   href="#origin0">origin</a>, if that is a tuple. If it isn't, then the
-   document does not have a domain.
+   href="#origin0">origin</a>, if that is a scheme/host/port tuple. If it
+   isn't, then the document does not have a domain.
 
   <p class=note>The <code title=dom-document-domain><a
    href="#domain">domain</a></code> attribute is used to enable pages on
@@ -27275,17 +27275,17 @@
   removed when that part is next updated -->
 
   <p><dfn id=the-string0>The string representing the script's domain in IDNA
-   format</dfn> is obtained as follows: take the domain part of the script's
-   <a href="#origin0">origin</a> tuple and apply the IDNA ToASCII algorithm
-   and then the IDNA ToUnicode algorithm to each component of the domain name
+   format</dfn> is obtained as follows: take the host part of the script's <a
+   href="#origin0">origin</a> tuple and apply the IDNA ToASCII algorithm and
+   then the IDNA ToUnicode algorithm to each component of the domain name
    (with both the AllowUnassigned and UseSTD3ASCIIRules flags set both
    times). <a href="#refsRFC3490">[RFC3490]</a>
 
   <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, or if
-   the origin of the script has no domain part, then the string representing
-   the script's domain in IDNA format cannot be obtained. (ToUnicode is
-   defined to never fail.)
+   the <a href="#origin0">origin</a> of the script is not a scheme/host/port
+   tuple, then the string representing the script's domain in IDNA format
+   cannot be obtained. (ToUnicode is defined to never fail.)
 
   <h3 id=scripting><span class=secno>4.4 </span>Scripting</h3>
 
@@ -28043,9 +28043,9 @@
       called the <code title=dom-showModalDialog><a
       href="#showmodaldialog">showModalDialog()</a></code> method at the time
       the method was called,</li>
-     <!-- XXX document.domain
-     breaks this. when fixing it, er on the side of including more
-     browsing contexts rather than less. -->
+     <!-- Note that changing
+     document.domain to talk to another domain doesn't make you able
+     to block that domain -->
     </ul>
 
     <p>...as well as any browsing contexts that are nested inside any of the

Modified: source
===================================================================
--- source	2008-04-29 01:22:39 UTC (rev 1504)
+++ source	2008-04-29 01:34:05 UTC (rev 1505)
@@ -24983,8 +24983,8 @@
 
   <p>The <dfn title="the document's domain">domain</dfn> of a
   <code>Document</code> is the host part of the document's
-  <span>origin</span>, if that is a tuple. If it isn't, then the
-  document does not have a domain.</p>
+  <span>origin</span>, if that is a scheme/host/port tuple. If it
+  isn't, then the document does not have a domain.</p>
 
   <p class="note">The <code title="dom-document-domain">domain</code>
   attribute is used to enable pages on different hosts of a domain to
@@ -24998,7 +24998,7 @@
   removed when that part is next updated -->
 
   <p><dfn>The string representing the script's domain in IDNA
-  format</dfn> is obtained as follows: take the domain part of the
+  format</dfn> is obtained as follows: take the host part of the
   script's <span>origin</span> tuple and apply the IDNA ToASCII
   algorithm and then the IDNA ToUnicode algorithm to each component of
   the domain name (with both the AllowUnassigned and UseSTD3ASCIIRules
@@ -25006,9 +25006,10 @@
 
   <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, or if the origin of the script has no domain part, then
-  the string representing the script's domain in IDNA format cannot be
-  obtained. (ToUnicode is defined to never fail.)</p>
+  characters, or if the <span>origin</span> of the script is not a
+  scheme/host/port tuple, then the string representing the script's
+  domain in IDNA format cannot be obtained. (ToUnicode is defined to
+  never fail.)</p>
 
 
 
@@ -25742,9 +25743,9 @@
      <span>origin</span> is the same as the origin of the script that
      called the <code
      title="dom-showModalDialog">showModalDialog()</code> method at
-     the time the method was called,</li> <!-- XXX document.domain
-     breaks this. when fixing it, er on the side of including more
-     browsing contexts rather than less. -->
+     the time the method was called,</li> <!-- Note that changing
+     document.domain to talk to another domain doesn't make you able
+     to block that domain -->
 
     </ul>
 




More information about the Commit-Watchers mailing list