[html5] r5404 - [giow] (2) Change document.domain to not rely on XHR. Also handles document.impl [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Aug 30 16:54:40 PDT 2010


Author: ianh
Date: 2010-08-30 16:54:38 -0700 (Mon, 30 Aug 2010)
New Revision: 5404

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Change document.domain to not rely on XHR. Also handles document.implementation.createDocument().domain, which was previously not handled.

Modified: complete.html
===================================================================
--- complete.html	2010-08-30 23:42:02 UTC (rev 5403)
+++ complete.html	2010-08-30 23:54:38 UTC (rev 5404)
@@ -59482,18 +59482,18 @@
   brackets from the host portion of the <a href=#url-host title=url-host><host></a> component must be omitted from
   the attribute's value.</p>
 
-  <p>On getting, the attribute must return its current
-  value, unless the document was created by
-  <code>XMLHttpRequest</code>, in which case it must throw an
-  <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</p>
+  <p>On getting, the attribute must return its current value, unless
+  the <code><a href=#document>Document</a></code> has no <a href=#browsing-context>browsing context</a>, in
+  which case it must throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code>
+  exception.</p>
 
   <p>On setting, the user agent must run the following algorithm:</p>
 
   <ol><li>
 
-    <p>If the document was created by <code>XMLHttpRequest</code>,
-    throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception and abort these
-    steps.</p>
+    <p>If the <code><a href=#document>Document</a></code> has no <a href=#browsing-context>browsing
+    context</a>, throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception
+    and abort these steps.</p>
 
    </li>
 

Modified: index
===================================================================
--- index	2010-08-30 23:42:02 UTC (rev 5403)
+++ index	2010-08-30 23:54:38 UTC (rev 5404)
@@ -59407,18 +59407,18 @@
   brackets from the host portion of the <a href=#url-host title=url-host><host></a> component must be omitted from
   the attribute's value.</p>
 
-  <p>On getting, the attribute must return its current
-  value, unless the document was created by
-  <code>XMLHttpRequest</code>, in which case it must throw an
-  <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</p>
+  <p>On getting, the attribute must return its current value, unless
+  the <code><a href=#document>Document</a></code> has no <a href=#browsing-context>browsing context</a>, in
+  which case it must throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code>
+  exception.</p>
 
   <p>On setting, the user agent must run the following algorithm:</p>
 
   <ol><li>
 
-    <p>If the document was created by <code>XMLHttpRequest</code>,
-    throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception and abort these
-    steps.</p>
+    <p>If the <code><a href=#document>Document</a></code> has no <a href=#browsing-context>browsing
+    context</a>, throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception
+    and abort these steps.</p>
 
    </li>
 

Modified: source
===================================================================
--- source	2010-08-30 23:42:02 UTC (rev 5403)
+++ source	2010-08-30 23:54:38 UTC (rev 5404)
@@ -67166,10 +67166,10 @@
   title="url-host"><host></span> component must be omitted from
   the attribute's value.</p>
 
-  <p>On getting, the attribute must return its current
-  value, unless the document was created by
-  <code>XMLHttpRequest</code>, in which case it must throw an
-  <code>INVALID_ACCESS_ERR</code> exception.</p>
+  <p>On getting, the attribute must return its current value, unless
+  the <code>Document</code> has no <span>browsing context</span>, in
+  which case it must throw an <code>INVALID_ACCESS_ERR</code>
+  exception.</p>
 
   <p>On setting, the user agent must run the following algorithm:</p>
 
@@ -67177,9 +67177,9 @@
 
    <li>
 
-    <p>If the document was created by <code>XMLHttpRequest</code>,
-    throw an <code>INVALID_ACCESS_ERR</code> exception and abort these
-    steps.</p>
+    <p>If the <code>Document</code> has no <span>browsing
+    context</span>, throw an <code>INVALID_ACCESS_ERR</code> exception
+    and abort these steps.</p>
 
    </li>
 




More information about the Commit-Watchers mailing list