HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
1951Define window.top2008-07-30 01:27
@@ -28072,20 +28072,27 @@ never reset. This is nice and consistent.)
   context</span>. User agents must not allow the user to interact with
   <span title="child browsing context">child browsing contexts</span>
   of elements that are in <code>Document</code>s that are not
   themselves <span>fully active</span>.</p>
 
   <p>A <span>nested browsing context</span> can have a <span>seamless
   browsing context flag</span> set, if it is embedded through an
   <code>iframe</code> element with a <code
   title="attr-iframe-seamless">seamless</code> attribute.</p>
 
+  <p>The <dfn title="dom-top"><code>top</code></dfn> DOM attribute on
+  the <code>Window</code> object of a <span>browsing context</span>
+  <var title="">b</var> must return the <code>Window</code> object of
+  its <span>top-level browsing context</span> (which would be its own
+  <code>Window</code> object if it was a <span>top-level browsing
+  context</span> itself).</p>
+
   <p>The <dfn title="dom-parent"><code>parent</code></dfn> DOM
   attribute on the <code>Window</code> object of a <span>browsing
   context</span> <var title="">b</var> must return the
   <code>Window</code> object of the <span>parent browsing
   context</span>, if there is one (i.e. if <var title="">b</var> is a
   <span>child browsing context</span>), or the <code>Window</code>
   object of the <span>browsing context</span> <var title="">b</var>
   itself, otherwise (i.e. if it is a <span>top-level browsing
   context</span>).</p>
 
@@ -28368,20 +28375,21 @@ never reset. This is nice and consistent.)
   DOMString <span title="dom-prompt">prompt</span>(in DOMString message, in DOMString default);
   void <span title="dom-print">print</span>();
   any <span title="dom-showModalDialog">showModalDialog</span>(in DOMString url);
   any <span title="dom-showModalDialog">showModalDialog</span>(in DOMString url, in any arguments);<!--
   any <span title="dom-showModalDialog">showModalDialog</span>(in DOMString url, in any arguments, in DOMString features);-->
 
   // other browsing contexts
   readonly attribute <span>Window</span> <span title="dom-frames">frames</span>;
   readonly attribute unsigned long <span title="dom-length">length</span>;
   [IndexGetter] <span>Window</span> <span title="dom-XXX4">XXX4</span>(in unsigned long index); <!-- XXX DOMB -->
+  readonly attribute <span>Window</span> <span title="dom-top">top</span>;
   readonly attribute <span>Window</span> <span title="dom-opener">opener</span>;
   readonly attribute <span>Window</span> <span title="dom-parent">parent</span>;
   <span>Window</span> <span title="dom-open">open</span>();
   <span>Window</span> <span title="dom-open">open</span>(in DOMString url);
   <span>Window</span> <span title="dom-open">open</span>(in DOMString url, in DOMString target);
   <span>Window</span> <span title="dom-open">open</span>(in DOMString url, in DOMString target, in DOMString features);
   <span>Window</span> <span title="dom-open">open</span>(in DOMString url, in DOMString target, in DOMString features, in DOMString replace);
 
   // <span>cross-document messaging</span>
   void <span title="dom-window-postMessage-2">postMessage</span>(in DOMString message, in DOMString targetOrigin);

|