[html5] r5710 - [e] (0) make 'cookie-free' an internal term so that XHR doesn't have to refer to [...]
whatwg at whatwg.org
whatwg at whatwg.org
Tue Dec 7 15:48:52 PST 2010
Author: ianh
Date: 2010-12-07 15:48:50 -0800 (Tue, 07 Dec 2010)
New Revision: 5710
Modified:
complete.html
index
source
Log:
[e] (0) make 'cookie-free' an internal term so that XHR doesn't have to refer to it; also, let XHR define its own origins.
Modified: complete.html
===================================================================
--- complete.html 2010-12-07 22:10:23 UTC (rev 5709)
+++ complete.html 2010-12-07 23:48:50 UTC (rev 5710)
@@ -8333,19 +8333,20 @@
attribute represents the cookies of the resource from which the
<code><a href=#document>Document</a></code> was created.</p>
- <p>Some <code><a href=#document>Document</a></code> objects are <dfn id=cookie-free-document-object title="cookie-free
- Document object">cookie-free <code>Document</code>
- objects</dfn>. Any <code><a href=#document>Document</a></code> object created by the <code title="">createDocument()</code> or <code title=dom-DOMHTMLImplementation-createHTMLDocument><a href=#dom-domhtmlimplementation-createhtmldocument>createHTMLDocument()</a></code>
- factory methods is a <a href=#cookie-free-document-object>cookie-free <code>Document</code>
- object</a>. Any <code><a href=#document>Document</a></code> whose <a href="#the-document's-address" title="the
- document's address">address</a> does not use a server-based
- naming authority is a <a href=#cookie-free-document-object>cookie-free <code>Document</code>
- object</a>. Other specifications can also define
- <code><a href=#document>Document</a></code> objects as being <a href=#cookie-free-document-object title="cookie-free
- Document object">cookie-free <code>Document</code>
- objects</a>.</p>
+ <p>A <code><a href=#document>Document</a></code> object that falls into one of the
+ following conditions is a <dfn id=cookie-free-document-object>cookie-free <code>Document</code>
+ object</dfn>:</p>
- <p id=sandboxCookies>On getting, if the document is a
+ <ul><li>A <code><a href=#document>Document</a></code> that has no <a href=#browsing-context>browsing
+ context</a>.</li>
+
+ <li>A <code><a href=#document>Document</a></code> whose <a href="#the-document's-address" title="the document's
+ address">address</a> does not use a server-based naming
+ authority.</li>
+
+ </ul><!--Other specifications can also define <code>Document</code>
+ objects as being <span title="cookie-free Document
+ object">cookie-free <code>Document</code> objects</span>.--><p id=sandboxCookies>On getting, if the document is a
<a href=#cookie-free-document-object>cookie-free <code>Document</code> object</a>, then the user
agent must return the empty string. Otherwise, if the
<code><a href=#document>Document</a></code>'s <a href=#origin>origin</a> is not a
@@ -58151,6 +58152,7 @@
</dd>
+
<dt>For scripts</dt>
<dd>
@@ -58228,6 +58230,7 @@
</dd>
+
<dt>For <code><a href=#document>Document</a></code> objects and images</dt>
<dd>
@@ -58244,13 +58247,6 @@
assigned when the <code><a href=#document>Document</a></code> is created.</dd>
- <dt>If a <code><a href=#document>Document</a></code> or image was returned by the
- <code>XMLHttpRequest</code> API</dt>
-
- <dd>The <a href=#origin>origin</a> is equal to the <span>XMLHttpRequest
- origin</span> of the <code>XMLHttpRequest</code> object. <a href=#refsXHR>[XHR]</a></dd>
-
-
<dt>If a <code><a href=#document>Document</a></code> or image was generated from a
<a href=#javascript-protocol title="javascript protocol"><code>javascript:</code>
URL</a></dt>
@@ -58321,6 +58317,7 @@
</dd>
+
<dt>For <code><a href=#audio>audio</a></code> and <code><a href=#video>video</a></code> elements</dt>
<dd>
@@ -58336,7 +58333,20 @@
</dd>
- </dl><p>The <dfn id=unicode-serialization-of-an-origin>Unicode serialization of an origin</dfn> is the string
+ </dl><p>Other specifications can override the above definitions by
+ themselves specifying the origin of a particular URL, script,
+ <code><a href=#document>Document</a></code>, or image.</p>
+
+ <!-- e.g.:
+
+ <p>The <span>origin</span> of a <code>Document</code> object
+ returned by the <code>XMLHttpRequest</code> API is equal to the
+ <span>XMLHttpRequest origin</span> of the
+ <code>XMLHttpRequest</code> object.</p>
+
+ -->
+
+ <hr><p>The <dfn id=unicode-serialization-of-an-origin>Unicode serialization of an origin</dfn> is the string
obtained by applying the following algorithm to the given
<a href=#origin>origin</a>:</p>
Modified: index
===================================================================
--- index 2010-12-07 22:10:23 UTC (rev 5709)
+++ index 2010-12-07 23:48:50 UTC (rev 5710)
@@ -8311,19 +8311,20 @@
attribute represents the cookies of the resource from which the
<code><a href=#document>Document</a></code> was created.</p>
- <p>Some <code><a href=#document>Document</a></code> objects are <dfn id=cookie-free-document-object title="cookie-free
- Document object">cookie-free <code>Document</code>
- objects</dfn>. Any <code><a href=#document>Document</a></code> object created by the <code title="">createDocument()</code> or <code title=dom-DOMHTMLImplementation-createHTMLDocument><a href=#dom-domhtmlimplementation-createhtmldocument>createHTMLDocument()</a></code>
- factory methods is a <a href=#cookie-free-document-object>cookie-free <code>Document</code>
- object</a>. Any <code><a href=#document>Document</a></code> whose <a href="#the-document's-address" title="the
- document's address">address</a> does not use a server-based
- naming authority is a <a href=#cookie-free-document-object>cookie-free <code>Document</code>
- object</a>. Other specifications can also define
- <code><a href=#document>Document</a></code> objects as being <a href=#cookie-free-document-object title="cookie-free
- Document object">cookie-free <code>Document</code>
- objects</a>.</p>
+ <p>A <code><a href=#document>Document</a></code> object that falls into one of the
+ following conditions is a <dfn id=cookie-free-document-object>cookie-free <code>Document</code>
+ object</dfn>:</p>
- <p id=sandboxCookies>On getting, if the document is a
+ <ul><li>A <code><a href=#document>Document</a></code> that has no <a href=#browsing-context>browsing
+ context</a>.</li>
+
+ <li>A <code><a href=#document>Document</a></code> whose <a href="#the-document's-address" title="the document's
+ address">address</a> does not use a server-based naming
+ authority.</li>
+
+ </ul><!--Other specifications can also define <code>Document</code>
+ objects as being <span title="cookie-free Document
+ object">cookie-free <code>Document</code> objects</span>.--><p id=sandboxCookies>On getting, if the document is a
<a href=#cookie-free-document-object>cookie-free <code>Document</code> object</a>, then the user
agent must return the empty string. Otherwise, if the
<code><a href=#document>Document</a></code>'s <a href=#origin>origin</a> is not a
@@ -58132,6 +58133,7 @@
</dd>
+
<dt>For scripts</dt>
<dd>
@@ -58209,6 +58211,7 @@
</dd>
+
<dt>For <code><a href=#document>Document</a></code> objects and images</dt>
<dd>
@@ -58225,13 +58228,6 @@
assigned when the <code><a href=#document>Document</a></code> is created.</dd>
- <dt>If a <code><a href=#document>Document</a></code> or image was returned by the
- <code>XMLHttpRequest</code> API</dt>
-
- <dd>The <a href=#origin>origin</a> is equal to the <span>XMLHttpRequest
- origin</span> of the <code>XMLHttpRequest</code> object. <a href=#refsXHR>[XHR]</a></dd>
-
-
<dt>If a <code><a href=#document>Document</a></code> or image was generated from a
<a href=#javascript-protocol title="javascript protocol"><code>javascript:</code>
URL</a></dt>
@@ -58302,6 +58298,7 @@
</dd>
+
<dt>For <code><a href=#audio>audio</a></code> and <code><a href=#video>video</a></code> elements</dt>
<dd>
@@ -58317,7 +58314,20 @@
</dd>
- </dl><p>The <dfn id=unicode-serialization-of-an-origin>Unicode serialization of an origin</dfn> is the string
+ </dl><p>Other specifications can override the above definitions by
+ themselves specifying the origin of a particular URL, script,
+ <code><a href=#document>Document</a></code>, or image.</p>
+
+ <!-- e.g.:
+
+ <p>The <span>origin</span> of a <code>Document</code> object
+ returned by the <code>XMLHttpRequest</code> API is equal to the
+ <span>XMLHttpRequest origin</span> of the
+ <code>XMLHttpRequest</code> object.</p>
+
+ -->
+
+ <hr><p>The <dfn id=unicode-serialization-of-an-origin>Unicode serialization of an origin</dfn> is the string
obtained by applying the following algorithm to the given
<a href=#origin>origin</a>:</p>
Modified: source
===================================================================
--- source 2010-12-07 22:10:23 UTC (rev 5709)
+++ source 2010-12-07 23:48:50 UTC (rev 5710)
@@ -8255,20 +8255,25 @@
attribute represents the cookies of the resource from which the
<code>Document</code> was created.</p>
- <p>Some <code>Document</code> objects are <dfn title="cookie-free
- Document object">cookie-free <code>Document</code>
- objects</dfn>. Any <code>Document</code> object created by the <code
- title="">createDocument()</code> or <code
- title="dom-DOMHTMLImplementation-createHTMLDocument">createHTMLDocument()</code>
- factory methods is a <span>cookie-free <code>Document</code>
- object</span>. Any <code>Document</code> whose <span title="the
- document's address">address</span> does not use a server-based
- naming authority is a <span>cookie-free <code>Document</code>
- object</span>. Other specifications can also define
- <code>Document</code> objects as being <span title="cookie-free
- Document object">cookie-free <code>Document</code>
- objects</span>.</p>
+ <p>A <code>Document</code> object that falls into one of the
+ following conditions is a <dfn>cookie-free <code>Document</code>
+ object</dfn>:</p>
+ <ul>
+
+ <li>A <code>Document</code> that has no <span>browsing
+ context</span>.</li>
+
+ <li>A <code>Document</code> whose <span title="the document's
+ address">address</span> does not use a server-based naming
+ authority.</li>
+
+ </ul>
+
+ <!--Other specifications can also define <code>Document</code>
+ objects as being <span title="cookie-free Document
+ object">cookie-free <code>Document</code> objects</span>.-->
+
<p id="sandboxCookies">On getting, if the document is a
<span>cookie-free <code>Document</code> object</span>, then the user
agent must return the empty string. Otherwise, if the
@@ -66071,6 +66076,7 @@
</dd>
+
<dt>For scripts</dt>
<dd>
@@ -66160,6 +66166,7 @@
</dd>
+
<dt>For <code>Document</code> objects and images</dt>
<dd>
@@ -66178,14 +66185,6 @@
assigned when the <code>Document</code> is created.</dd>
- <dt>If a <code>Document</code> or image was returned by the
- <code>XMLHttpRequest</code> API</dt>
-
- <dd>The <span>origin</span> is equal to the <span>XMLHttpRequest
- origin</span> of the <code>XMLHttpRequest</code> object. <a
- href="#refsXHR">[XHR]</a></dd>
-
-
<dt>If a <code>Document</code> or image was generated from a
<span title="javascript protocol"><code>javascript:</code>
URL</span></dt>
@@ -66264,6 +66263,7 @@
</dd>
+
<dt>For <code>audio</code> and <code>video</code> elements</dt>
<dd>
@@ -66283,6 +66283,21 @@
</dl>
+ <p>Other specifications can override the above definitions by
+ themselves specifying the origin of a particular URL, script,
+ <code>Document</code>, or image.</p>
+
+ <!-- e.g.:
+
+ <p>The <span>origin</span> of a <code>Document</code> object
+ returned by the <code>XMLHttpRequest</code> API is equal to the
+ <span>XMLHttpRequest origin</span> of the
+ <code>XMLHttpRequest</code> object.</p>
+
+ -->
+
+ <hr>
+
<p>The <dfn>Unicode serialization of an origin</dfn> is the string
obtained by applying the following algorithm to the given
<span>origin</span>:</p>
More information about the Commit-Watchers
mailing list