Skip to content

Commit

Permalink
Editorial: shorten Window's top attribute's algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk authored Feb 22, 2019
1 parent 140fde2 commit bc58c77
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -77480,24 +77480,15 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {

<div w-nodev>

<p>The <dfn><code data-x="dom-top">top</code></dfn> IDL attribute, on getting, must run the
following algorithm:</p>
<p>The <dfn><code data-x="dom-top">top</code></dfn> attribute's getter must run these steps:</p>

<ol>
<li><p>Let <var>windowProxy</var> be this <code>Window</code> object's <code>WindowProxy</code>
object.</p></li>

<li><p>If there is no <span>browsing context</span> with <var>windowProxy</var> as its
<code>WindowProxy</code> object, then return null.</p>

<li><p>Let <var>context</var> be that <span>browsing context</span>.</p></li>

<li><p>If <var>context</var> is a <span>top-level browsing context</span>, then return
<var>context</var>'s <code>WindowProxy</code> object.</p></li>
<li><p>If this <code>Window</code> object's <span data-x="window bc">browsing context</span> is
null, then return null.</p></li>

<li><p>Otherwise, <var>context</var> must have a <span>top-level browsing context</span> (i.e. an
<span>ancestor browsing context</span> with no <span>parent browsing context</span>). Return that
<span>top-level browsing context</span>'s <code>WindowProxy</code> object.</p></li>
<li><p>Return this <code>Window</code> object's <span data-x="window bc">browsing
context</span>'s <span>top-level browsing context</span>'s <code>WindowProxy</code>
object.</p></li>
</ol>

<p>The <dfn><code data-x="dom-opener">opener</code></dfn> attribute's getter must run these
Expand Down

0 comments on commit bc58c77

Please sign in to comment.