- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 27 Jan 2009 09:36:35 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv23071 Modified Files: Overview.html Log Message: Define base URIs and document addresses for various freaky cases with about:blank. (whatwg r2711) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.1880 retrieving revision 1.1881 diff -u -d -r1.1880 -r1.1881 --- Overview.html 27 Jan 2009 07:27:38 -0000 1.1880 +++ Overview.html 27 Jan 2009 09:36:32 -0000 1.1881 @@ -3383,23 +3383,43 @@ the <a href=#absolute-url>absolute URL</a> obtained by running these substeps:</p> - <ol><li><p>If there is no <code><a href=#the-base-element>base</a></code> element that is both a + <ol><li><p>Let <var title="">fallback base url</var> be <a href=#the-document-s-address>the + document's address</a>.</li> + + <li> + + <!-- http://www.hixie.ch/tests/adhoc/html/navigation/javascript-url/ --> + + <!-- XXX this should be tested in the case of a browsing context + that was navigated to about:blank after having been elsewhere, + as opposed to the about:blank used at the time of the browsing + context's creation. --> + + <p>If <var title="">fallback base url</var> is + <code><a href=#about:blank>about:blank</a></code>, and the <code>Document</code>'s + <a href=#browsing-context>browsing context</a> has a <a href=#creator-browsing-context>creator browsing + context</a>, then let <var title="">fallback base url</var> + be the <a href=#document-base-url>document base URL</a> of the <a href=#creator-document>creator + <code>Document</code></a> instead.</p> + + </li> + + <li><p>If there is no <code><a href=#the-base-element>base</a></code> element that is both a child of <a href=#the-head-element-0>the <code>head</code> element</a> and has an <code title=attr-base-href><a href=#attr-base-href>href</a></code> attribute, then the - <a href=#document-base-url>document base URL</a> is <a href=#the-document-s-address>the document's - address</a>.</li> + <a href=#document-base-url>document base URL</a> is <var title="">fallback base + url</var>.</li> <li><p>Otherwise, let <var title="">url</var> be the value of the - <code title=attr-base-href><a href=#attr-base-href>href</a></code> attribute of the first such - element.</li> + <code title=attr-base-href><a href=#attr-base-href>href</a></code> attribute of the first + such element.</li> - <li><p><a href=#resolve-a-url title="resolve a URL">Resolve</a> <var title="">url</var> relative to <a href=#the-document-s-address>the document's - address</a> (thus, the <code><a href=#the-base-element>base</a></code> <code title=attr-base-href><a href=#attr-base-href>href</a></code> attribute isn't affected by + <li><p><a href=#resolve-a-url title="resolve a URL">Resolve</a> <var title="">url</var> relative to <var title="">fallback base + url</var> (thus, the <code><a href=#the-base-element>base</a></code> <code title=attr-base-href><a href=#attr-base-href>href</a></code> attribute isn't affected by <code title=attr-xml-base><a href=#the-xml:base-attribute-xml-only>xml:base</a></code> attributes).</li> <li><p>The <a href=#document-base-url>document base URL</a> is the result of the - previous step if it was successful; otherwise it is <a href=#the-document-s-address>the - document's address</a>.</li> + previous step if it was successful; otherwise it is <var title="">fallback base url</var>.</li> </ol></li> @@ -27029,7 +27049,15 @@ browsing context, one with a view in the speech media.<p class=note>A <code>Document</code> does not necessarily have a <a href=#browsing-context>browsing context</a> associated with it. In particular, data mining tools are likely to never instantiate browsing - contexts.<p>The main <a href=#view>view</a> through which a user primarily + contexts.<p>A <a href=#browsing-context>browsing context</a> can have a <dfn id=creator-browsing-context>creator browsing + context</dfn>, the <a href=#browsing-context>browsing context</a> that was + responsible for its creation. Unless otherwise specified, a + <a href=#browsing-context>browsing context</a> has no <a href=#creator-browsing-context>creator browsing + context</a>.<p>If a <a href=#browsing-context>browsing context</a> <var title="">A</var> has a + <a href=#creator-browsing-context>creator browsing context</a>, then the + <code>Document</code> that was the <a href=#active-document>active document</a> of + that <a href=#creator-browsing-context>creator browsing context</a> at the time <var title="">A</var> was created is the <dfn id=creator-document>creator + <code>Document</code></dfn>.<p>The main <a href=#view>view</a> through which a user primarily interacts with a user agent is the <dfn id=default-view>default view</dfn>.<p class=note>The <a href=#default-view>default view</a> of a <code>Document</code> is given by the <code title="">defaultView</code> attribute on the <code>Document</code> object's <code>DocumentView</code> interface. <a href=#references>[DOM3VIEWS]</a><p>When a <a href=#browsing-context>browsing context</a> is first created, it must be @@ -27042,37 +27070,14 @@ created specifically to be immediately navigated, then that initial navigation will have <a href=#replacement-enabled>replacement enabled</a>.<p id=about-blank-origin>The <a href=#origin-0>origin</a> of the <code><a href=#about:blank>about:blank</a></code> <code>Document</code> is set when the - <code>Document</code> is created, in a manner dependent on whether - the <a href=#browsing-context>browsing context</a> created is a <a href=#nested-browsing-context>nested browsing - context</a>, as follows: - - <dl class=switch><dt>If the new <a href=#browsing-context>browsing context</a> is a <a href=#nested-browsing-context>nested - browsing context</a></dt> - - <dd>The <a href=#origin-0>origin</a> of the <code><a href=#about:blank>about:blank</a></code> - <code>Document</code> is the <a href=#origin-0>origin</a> of the - <a href=#active-document>active document</a> of the new <a href=#browsing-context>browsing - context</a>'s <a href=#parent-browsing-context>parent browsing context</a> at the time - of its creation.</dd> - - - <dt>If the new <a href=#browsing-context>browsing context</a> is an <a href=#auxiliary-browsing-context>auxiliary - browsing context</a></dt> - - <dd>The <a href=#origin-0>origin</a> of the <code><a href=#about:blank>about:blank</a></code> - <code>Document</code> is the <a href=#origin-0>origin</a> of the - <a href=#active-document>active document</a> of the new <a href=#browsing-context>browsing - context</a>'s <a href=#opener-browsing-context>opener browsing context</a> at the time - of the new browsing context's creation.</dd> - - - <dt>Otherwise</dt> - - <dd>The <a href=#origin-0>origin</a> of the <code><a href=#about:blank>about:blank</a></code> - <code>Document</code> is a globally unique identifier assigned when - the new <a href=#browsing-context>browsing context</a> is created.</dd> - - </dl><h4 id=nested-browsing-contexts><span class=secno>5.1.1 </span>Nested browsing contexts</h4><p>Certain elements (for example, <code><a href=#the-iframe-element>iframe</a></code> elements) can + <code>Document</code> is created. If the new <a href=#browsing-context>browsing + context</a> has a <a href=#creator-browsing-context>creator browsing context</a>, then the + <a href=#origin-0>origin</a> of the <code><a href=#about:blank>about:blank</a></code> + <code>Document</code> is the <a href=#origin-0>origin</a> of the + <a href=#creator-document>creator <code>Document</code></a>. Otherwise, the + <a href=#origin-0>origin</a> of the <code><a href=#about:blank>about:blank</a></code> + <code>Document</code> is a globally unique identifier assigned when + the new <a href=#browsing-context>browsing context</a> is created.<h4 id=nested-browsing-contexts><span class=secno>5.1.1 </span>Nested browsing contexts</h4><p>Certain elements (for example, <code><a href=#the-iframe-element>iframe</a></code> elements) can instantiate further <a href=#browsing-context title="browsing context">browsing contexts</a>. These are called <dfn id=nested-browsing-context title="nested browsing context">nested browsing contexts</dfn>. If a browsing context <var title="">P</var> has an element <var title="">E</var> in one of its @@ -28452,6 +28457,19 @@ <dd> + <!-- http://www.hixie.ch/tests/adhoc/html/navigation/javascript-url/ --> + + <p>Let <var title="">address</var> be the <a href=#the-document-s-address title="the + document's address">address</a> of the <a href=#active-document>active + document</a> of the <a href=#browsing-context>browsing context</a> being + navigated.</p> + + <p>If <var title="">address</var> is <code><a href=#about:blank>about:blank</a></code>, + and the <a href=#browsing-context>browsing context</a> being navigated has a + <a href=#creator-browsing-context>creator browsing context</a>, then let <var title="">address</var> be the <a href=#the-document-s-address title="the document's + address">address</a> of the <a href=#creator-document>creator + <code>Document</code></a> instead.</p> + <p><a href=#create-a-script-from-a-node title="create a script from a node">Create a script</a> from the <code>Document</code> node of the <a href=#active-document>active document</a>, using the aforementioned script @@ -28463,7 +28481,7 @@ <p>When it comes time to <a href=#set-the-document-s-address>set the document's address</a> in the <a href=#navigate title=navigate>navigation algorithm</a>, use - the <a href=#script-s-base-url>script's base URL</a> as the <a href=#override-url>override + <var title="">address</var> as the <a href=#override-url>override URL</a>.</p> </dd>
Received on Tuesday, 27 January 2009 09:36:44 UTC