Skip to content

Commit 4823cf5

Browse files
annevkdomenic
authored andcommitted
Editorial: cleanup activeElement
1 parent 4938130 commit 4823cf5

1 file changed

Lines changed: 18 additions & 26 deletions

File tree

source

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -73493,40 +73493,32 @@ END:VCARD</pre>
7349373493

7349473494
<div w-nodev>
7349573495

73496-
<p>The <dfn><code data-x="dom-document-activeElement">activeElement</code></dfn> attribute on
73497-
<code>Document</code> objects must return the value returned by the following steps:</p>
73496+
<p>The <dfn><code data-x="dom-document-activeElement">activeElement</code></dfn> attribute's
73497+
getter must run these steps:</p>
7349873498

7349973499
<ol>
73500+
<li><p>Let <var>candidate</var> be this <code>Document</code> object.</p></li>
7350073501

73501-
<li><p>Let <var>candidate</var> be the <code>Document</code> on which the method was
73502-
invoked.</p></li>
73503-
73504-
<li><p>If <var>candidate</var> has a <span>dialog group</span> with a designated
73505-
<span>focused dialog of the dialog group</span>, then let <var>candidate</var> be the
73506-
designated <span>focused dialog of the dialog group</span>, and redo this step.</p></li>
73507-
73508-
<li><p>If <var>candidate</var> has a non-empty <span>control group</span>, let <var>candidate</var> be the designated <span>focused area of the control
73509-
group</span>.</p>
73510-
73511-
</li>
73512-
73513-
<li><p>If <var>candidate</var> is a <span>focusable area</span>, let <var>candidate</var> be <var>candidate</var>'s <span>DOM anchor</span>.</p></li>
73502+
<li><p>While <var>candidate</var> has a <span>dialog group</span> with a designated
73503+
<span>focused dialog of the dialog group</span>, set <var>candidate</var> to the
73504+
designated <span>focused dialog of the dialog group</span>.</p></li>
7351473505

73515-
<li>
73516-
73517-
<p>If <var>candidate</var> is a <code>Document</code> that has a <span data-x="the
73518-
body element">body element</span>, then let <var>candidate</var> be <span>the body
73519-
element</span> of that <code>Document</code>.</p>
73506+
<li><p>If <var>candidate</var> has a non-empty <span>control group</span>, then set
73507+
<var>candidate</var> to the designated <span>focused area of the control group</span>.</p></li>
7352073508

73521-
<p>Otherwise, if <var>candidate</var> is a <code>Document</code> with a non-null <span>document
73522-
element</span>, then let <var>candidate</var> be that <span>document element</span>.</p>
73509+
<li><p>If <var>candidate</var> is a <span>focusable area</span>, then set <var>candidate</var> to
73510+
<var>candidate</var>'s <span>DOM anchor</span>.</p></li>
7352373511

73524-
<p>Otherwise, if <var>candidate</var> is a <code>Document</code>, then let <var>candidate</var> be null.</p>
73512+
<li><p>If <var>candidate</var> is not a <code>Document</code> object, then return
73513+
<var>candidate</var>.</p></li>
7352573514

73526-
</li>
73515+
<li><p>If <var>candidate</var> has a <span data-x="the body element">body element</span>, then
73516+
return that <span data-x="the body element">body element</span>.</p></li>
7352773517

73528-
<li><p>Return <var>candidate</var>.</p></li>
73518+
<li><p>If <var>candidate</var>'s <span>document element</span> is non-null, then return that
73519+
<span>document element</span>.</p></li>
7352973520

73521+
<li><p>Return null.</p></li>
7353073522
</ol>
7353173523

7353273524
<p>The <dfn><code data-x="dom-document-hasFocus">hasFocus()</code></dfn> method on the
@@ -77306,7 +77298,7 @@ console.assert(iframeWindow.frameElement === null);
7730677298
<p>An <span>auxiliary browsing context</span> can be <dfn
7730777299
id="disowned-its-opener">disowned</dfn>.</p>
7730877300

77309-
<p>The <dfn><code data-x="dom-opener">opener</code></dfn> attribute's getter, must run these
77301+
<p>The <dfn><code data-x="dom-opener">opener</code></dfn> attribute's getter must run these
7731077302
steps:</p>
7731177303

7731277304
<ol>

0 commit comments

Comments
 (0)