Skip to content

Commit

Permalink
[e] (0) Fix some cross-reference issues.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=15113
Affected topics: DOM APIs

git-svn-id: http://svn.whatwg.org/webapps@6866 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 9, 2011
1 parent 9edf1ab commit dcb7613
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 16 deletions.
18 changes: 11 additions & 7 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -3790,7 +3790,7 @@ <h4 id=dependencies><span class=secno>2.2.2 </span>Dependencies</h4>
<li><dfn id=cdatasection><code>CDATASection</code></dfn> interface</li>
<li><dfn id=comment-0><code>Comment</code></dfn> interface</li>
<li><dfn id=domimplementation><code>DOMImplementation</code></dfn> interface</li>
<li><dfn id=document><code>Document</code></dfn> interface</li>
<li><dfn id=dom-document title="DOM Document"><code>Document</code></dfn> interface</li>
<li><dfn id=documentfragment><code>DocumentFragment</code></dfn> interface</li>
<li><dfn id=documenttype><code>DocumentType</code></dfn> interface</li>
<li><dfn id=domexception><code>DOMException</code></dfn> interface</li>
Expand Down Expand Up @@ -9773,8 +9773,12 @@ <h3 id=documents><span class=secno>3.1 </span>Documents</h3>

</ol><h4 id=documents-in-the-dom><span class=secno>3.1.1 </span>Documents in the DOM</h4>

<p>The DOM Core specification defines a <code title="DOM
Document"><a href=#dom-document>Document</a></code> interface, which this specification
extends significantly:</p>

<pre class=idl>[OverrideBuiltins]
partial interface <a href=#document>Document</a> {
partial interface <dfn id=document>Document</dfn> {
// <a href=#resource-metadata-management>resource metadata management</a>
[PutForwards=<a href=#dom-location-href title=dom-location-href>href</a>] readonly attribute <a href=#location>Location</a>? <a href=#dom-document-location title=dom-document-location>location</a>;
readonly attribute DOMString <a href=#dom-document-url title=dom-document-URL>URL</a>;
Expand Down Expand Up @@ -61149,7 +61153,7 @@ <h3 id=the-window-object><span class=secno>6.2 </span>The <code><a href=#window>
// the current browsing context
[Unforgeable] readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-window title=dom-window>window</a>;
[Replaceable] readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-self title=dom-self>self</a>;
[Unforgeable] readonly attribute <a href=#document>Document</a> <a href=#dom-document title=dom-document>document</a>;
[Unforgeable] readonly attribute <a href=#document>Document</a> <a href=#dom-document-0 title=dom-document>document</a>;
attribute DOMString <a href=#dom-name title=dom-name>name</a>; <!-- not [Replaceable] per WebKit and IE8 -->
[PutForwards=<a href=#dom-location-href title=dom-location-href>href</a>, Unforgeable] readonly attribute <a href=#location>Location</a> <a href=#dom-location title=dom-location>location</a>;
readonly attribute <a href=#history-0>History</a> <a href=#dom-history title=dom-history>history</a>;
Expand Down Expand Up @@ -61282,7 +61286,7 @@ <h3 id=the-window-object><span class=secno>6.2 </span>The <code><a href=#window>
</dd>


<dt><var title="">window</var> . <code title=dom-document><a href=#dom-document>document</a></code></dt>
<dt><var title="">window</var> . <code title=dom-document><a href=#dom-document-0>document</a></code></dt>

<dd>

Expand All @@ -61309,7 +61313,7 @@ <h3 id=the-window-object><span class=secno>6.2 </span>The <code><a href=#window>
return the <code><a href=#window>Window</a></code> object's <a href=#browsing-context>browsing
context</a>'s <code><a href=#windowproxy>WindowProxy</a></code> object.</p>

<p>The <dfn id=dom-document title=dom-document><code>document</code></dfn> IDL
<p>The <dfn id=dom-document-0 title=dom-document><code>document</code></dfn> IDL
attribute must return the <code><a href=#document>Document</a></code> object of the
<code><a href=#window>Window</a></code> object's <code><a href=#document>Document</a></code>'s <a href=#browsing-context>browsing
context</a>'s <a href=#active-document>active document</a>.</p>
Expand Down Expand Up @@ -61700,7 +61704,7 @@ <h4 id=garbage-collection-and-browsing-contexts><span class=secno>6.2.5 </span>G

<p class=note>A <code><a href=#window>Window</a></code> object <a href=#implied-strong-reference title="implied
strong reference">has a strong reference</a> to its
<code><a href=#document>Document</a></code> object through its <code title=dom-document><a href=#dom-document>document</a></code> attribute. Thus, references
<code><a href=#document>Document</a></code> object through its <code title=dom-document><a href=#dom-document-0>document</a></code> attribute. Thus, references
from other scripts to either of those objects will keep both
alive. Similarly, both <code><a href=#document>Document</a></code> and <code><a href=#window>Window</a></code>
objects have <a href=#implied-strong-reference title="implied strong reference">implied strong
Expand Down Expand Up @@ -63712,7 +63716,7 @@ <h4 id=navigating-across-documents><span class=secno>6.5.1 </span>Navigating acr
is occurring with <a href=#replacement-enabled>replacement enabled</a>, and that
<code><a href=#document>Document</a></code> has the <a href=#same-origin>same origin</a> as the new
<code><a href=#document>Document</a></code>, then the <code><a href=#window>Window</a></code> object of that
<code><a href=#document>Document</a></code> must be used instead, and the <code title=dom-document><a href=#dom-document>document</a></code> attribute of the
<code><a href=#document>Document</a></code> must be used instead, and the <code title=dom-document><a href=#dom-document-0>document</a></code> attribute of the
<code><a href=#window>Window</a></code> object must be changed to point to the new
<code><a href=#document>Document</a></code> instead.</p>

Expand Down
18 changes: 11 additions & 7 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -3790,7 +3790,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<li><dfn id=cdatasection><code>CDATASection</code></dfn> interface</li>
<li><dfn id=comment-0><code>Comment</code></dfn> interface</li>
<li><dfn id=domimplementation><code>DOMImplementation</code></dfn> interface</li>
<li><dfn id=document><code>Document</code></dfn> interface</li>
<li><dfn id=dom-document title="DOM Document"><code>Document</code></dfn> interface</li>
<li><dfn id=documentfragment><code>DocumentFragment</code></dfn> interface</li>
<li><dfn id=documenttype><code>DocumentType</code></dfn> interface</li>
<li><dfn id=domexception><code>DOMException</code></dfn> interface</li>
Expand Down Expand Up @@ -9773,8 +9773,12 @@ interface <dfn id=transferable>Transferable</dfn> { };</pre>

</ol><h4 id=documents-in-the-dom><span class=secno>3.1.1 </span>Documents in the DOM</h4>

<p>The DOM Core specification defines a <code title="DOM
Document"><a href=#dom-document>Document</a></code> interface, which this specification
extends significantly:</p>

<pre class=idl>[OverrideBuiltins]
partial interface <a href=#document>Document</a> {
partial interface <dfn id=document>Document</dfn> {
// <a href=#resource-metadata-management>resource metadata management</a>
[PutForwards=<a href=#dom-location-href title=dom-location-href>href</a>] readonly attribute <a href=#location>Location</a>? <a href=#dom-document-location title=dom-document-location>location</a>;
readonly attribute DOMString <a href=#dom-document-url title=dom-document-URL>URL</a>;
Expand Down Expand Up @@ -61149,7 +61153,7 @@ interface <dfn id=window>Window</dfn> : <a href=#eventtarget>EventTarget</a> {
// the current browsing context
[Unforgeable] readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-window title=dom-window>window</a>;
[Replaceable] readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-self title=dom-self>self</a>;
[Unforgeable] readonly attribute <a href=#document>Document</a> <a href=#dom-document title=dom-document>document</a>;
[Unforgeable] readonly attribute <a href=#document>Document</a> <a href=#dom-document-0 title=dom-document>document</a>;
attribute DOMString <a href=#dom-name title=dom-name>name</a>; <!-- not [Replaceable] per WebKit and IE8 -->
[PutForwards=<a href=#dom-location-href title=dom-location-href>href</a>, Unforgeable] readonly attribute <a href=#location>Location</a> <a href=#dom-location title=dom-location>location</a>;
readonly attribute <a href=#history-0>History</a> <a href=#dom-history title=dom-history>history</a>;
Expand Down Expand Up @@ -61282,7 +61286,7 @@ interface <dfn id=window>Window</dfn> : <a href=#eventtarget>EventTarget</a> {
</dd>


<dt><var title="">window</var> . <code title=dom-document><a href=#dom-document>document</a></code></dt>
<dt><var title="">window</var> . <code title=dom-document><a href=#dom-document-0>document</a></code></dt>

<dd>

Expand All @@ -61309,7 +61313,7 @@ interface <dfn id=window>Window</dfn> : <a href=#eventtarget>EventTarget</a> {
return the <code><a href=#window>Window</a></code> object's <a href=#browsing-context>browsing
context</a>'s <code><a href=#windowproxy>WindowProxy</a></code> object.</p>

<p>The <dfn id=dom-document title=dom-document><code>document</code></dfn> IDL
<p>The <dfn id=dom-document-0 title=dom-document><code>document</code></dfn> IDL
attribute must return the <code><a href=#document>Document</a></code> object of the
<code><a href=#window>Window</a></code> object's <code><a href=#document>Document</a></code>'s <a href=#browsing-context>browsing
context</a>'s <a href=#active-document>active document</a>.</p>
Expand Down Expand Up @@ -61700,7 +61704,7 @@ interface <dfn id=window>Window</dfn> : <a href=#eventtarget>EventTarget</a> {

<p class=note>A <code><a href=#window>Window</a></code> object <a href=#implied-strong-reference title="implied
strong reference">has a strong reference</a> to its
<code><a href=#document>Document</a></code> object through its <code title=dom-document><a href=#dom-document>document</a></code> attribute. Thus, references
<code><a href=#document>Document</a></code> object through its <code title=dom-document><a href=#dom-document-0>document</a></code> attribute. Thus, references
from other scripts to either of those objects will keep both
alive. Similarly, both <code><a href=#document>Document</a></code> and <code><a href=#window>Window</a></code>
objects have <a href=#implied-strong-reference title="implied strong reference">implied strong
Expand Down Expand Up @@ -63712,7 +63716,7 @@ State: &lt;OUTPUT NAME=I&gt;1&lt;/OUTPUT&gt; &lt;INPUT VALUE="Increment" TYPE=BU
is occurring with <a href=#replacement-enabled>replacement enabled</a>, and that
<code><a href=#document>Document</a></code> has the <a href=#same-origin>same origin</a> as the new
<code><a href=#document>Document</a></code>, then the <code><a href=#window>Window</a></code> object of that
<code><a href=#document>Document</a></code> must be used instead, and the <code title=dom-document><a href=#dom-document>document</a></code> attribute of the
<code><a href=#document>Document</a></code> must be used instead, and the <code title=dom-document><a href=#dom-document-0>document</a></code> attribute of the
<code><a href=#window>Window</a></code> object must be changed to point to the new
<code><a href=#document>Document</a></code> instead.</p>

Expand Down
8 changes: 6 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -2732,7 +2732,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<li><dfn><code>CDATASection</code></dfn> interface</li>
<li><dfn><code>Comment</code></dfn> interface</li>
<li><dfn><code>DOMImplementation</code></dfn> interface</li>
<li><dfn><code>Document</code></dfn> interface</li>
<li><dfn title="DOM Document"><code>Document</code></dfn> interface</li>
<li><dfn><code>DocumentFragment</code></dfn> interface</li>
<li><dfn><code>DocumentType</code></dfn> interface</li>
<li><dfn><code>DOMException</code></dfn> interface</li>
Expand Down Expand Up @@ -9953,8 +9953,12 @@ interface <dfn>Transferable</dfn> { };</pre>

<h4>Documents in the DOM</h4>

<p>The DOM Core specification defines a <code title="DOM
Document">Document</code> interface, which this specification
extends significantly:</p>

<pre class="idl">[OverrideBuiltins]
partial interface <span>Document</span> {
partial interface <dfn>Document</dfn> {
// <span>resource metadata management</span>
[PutForwards=<span title="dom-location-href">href</span>] readonly attribute <span>Location</span>? <span title="dom-document-location">location</span>;
readonly attribute DOMString <span title="dom-document-URL">URL</span>;
Expand Down

0 comments on commit dcb7613

Please sign in to comment.