Skip to content

Commit fde9931

Browse files
zcorpandomenic
authored andcommitted
Meta: disambiguate focus() and blur() for Window and HTMLElement
Add data-dfn-for="" attributes as appropriate. This should help other specs (in this case CSSOM View) cross-referencing these terms. Also fixes a few cases where data-for="" should have been data-dfn-for="".
1 parent 7f052f2 commit fde9931

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

source

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -73695,17 +73695,17 @@ END:VCARD</pre>
7369573695
<code>Document</code> object, when invoked, must return the result of running the <span>has focus
7369673696
steps</span> with the <code>Document</code> object as the argument.</p>
7369773697

73698-
<p>The <dfn><code data-x="dom-window-focus">focus()</code></dfn> method on the <code>Window</code>
73699-
object, when invoked, must run the <span>focusing steps</span> with the <code>Window</code>
73700-
object's <span>browsing context</span>. Additionally, if this <span>browsing context</span> is a
73701-
<span>top-level browsing context</span>, user agents are encouraged to trigger some sort of
73702-
notification to indicate to the user that the page is attempting to gain focus.</p>
73703-
73704-
<p>The <dfn><code data-x="dom-window-blur">blur()</code></dfn> method on the <code>Window</code>
73705-
object, when invoked, provides a hint to the user agent that the script believes the user probably
73706-
is not currently interested in the contents of the <span>browsing context</span> of the
73707-
<code>Window</code> object on which the method was invoked, but that the contents might become
73708-
interesting again in the future.</p>
73698+
<p>The <dfn data-dfn-for="Window"><code data-x="dom-window-focus">focus()</code></dfn> method on
73699+
the <code>Window</code> object, when invoked, must run the <span>focusing steps</span> with the
73700+
<code>Window</code> object's <span>browsing context</span>. Additionally, if this <span>browsing
73701+
context</span> is a <span>top-level browsing context</span>, user agents are encouraged to trigger
73702+
some sort of notification to indicate to the user that the page is attempting to gain focus.</p>
73703+
73704+
<p>The <dfn data-dfn-for="Window"><code data-x="dom-window-blur">blur()</code></dfn> method on the
73705+
<code>Window</code> object, when invoked, provides a hint to the user agent that the script
73706+
believes the user probably is not currently interested in the contents of the <span>browsing
73707+
context</span> of the <code>Window</code> object on which the method was invoked, but that the
73708+
contents might become interesting again in the future.</p>
7370973709

7371073710
<p>User agents are encouraged to ignore calls to this <code data-x="dom-window-blur">blur()</code>
7371173711
method entirely.</p>
@@ -73715,8 +73715,8 @@ END:VCARD</pre>
7371573715
system widget (e.g. tab or window) that contained the <span>browsing context</span>, but hostile
7371673716
sites widely abuse this behavior to the user's detriment.</p>
7371773717

73718-
<p>The <dfn><code data-x="dom-focus">focus()</code></dfn> method on elements, when invoked, must
73719-
run the following algorithm:</p>
73718+
<p>The <dfn data-dfn-for="HTMLElement"><code data-x="dom-focus">focus()</code></dfn> method on
73719+
elements, when invoked, must run the following algorithm:</p>
7372073720

7372173721
<ol>
7372273722

@@ -73730,9 +73730,10 @@ END:VCARD</pre>
7373073730

7373173731
</ol>
7373273732

73733-
<p>The <dfn><code data-x="dom-blur">blur()</code></dfn> method, when invoked, should run the
73734-
<span>unfocusing steps</span> for the element on which the method was called. User agents may
73735-
selectively or uniformly ignore calls to this method for usability reasons.</p>
73733+
<p>The <dfn data-dfn-for="HTMLElement"><code data-x="dom-blur">blur()</code></dfn> method, when
73734+
invoked, should run the <span>unfocusing steps</span> for the element on which the method was
73735+
called. User agents may selectively or uniformly ignore calls to this method for usability
73736+
reasons.</p>
7373673737

7373773738
<p class="example">For example, if the <code data-x="dom-blur">blur()</code> method is unwisely
7373873739
being used to remove the focus ring for aesthetics reasons, the page would become unusable by
@@ -93490,7 +93491,7 @@ dictionary <dfn>EventSourceInit</dfn> {
9349093491
<p>Each <code>EventSource</code> object has the following associated with it:</p>
9349193492

9349293493
<ul>
93493-
<li><p>A <dfn data-x="concept-EventSource-url" data-for="EventSource">url</dfn> (a <span>URL
93494+
<li><p>A <dfn data-x="concept-EventSource-url" data-dfn-for="EventSource">url</dfn> (a <span>URL
9349493495
record</span>). Set during construction.</p></li>
9349593496

9349693497
<li><p>A <dfn data-x="concept-event-stream-request">request</dfn>. This must initially be
@@ -96518,15 +96519,15 @@ interface <dfn>WorkerGlobalScope</dfn> : <span>EventTarget</span> {
9651896519
<div w-nodev>
9651996520

9652096521
<p id="the-worker's-documents">A <code>WorkerGlobalScope</code> object has an associated <dfn
96521-
id="concept-WorkerGlobalScope-owner-set" data-export="" data-for="WorkerGlobalScope">owner
96522+
id="concept-WorkerGlobalScope-owner-set" data-export="" data-dfn-for="WorkerGlobalScope">owner
9652296523
set</dfn> (a <span>set</span> of <code>Document</code> and <code>WorkerGlobalScope</code>
9652396524
objects). It is initially empty and populated when the worker is created or obtained.</p>
9652496525

9652596526
<p class="note">It is a <span>set</span>, instead of a single owner, to accomodate
9652696527
<code>SharedWorkerGlobalScope</code> objects.</p>
9652796528

9652896529
<p>A <code>WorkerGlobalScope</code> object has an associated <dfn id="the-worker's-workers"
96529-
data-export="" data-for="WorkerGlobalScope">worker set</dfn> (a <span>set</span> of
96530+
data-export="" data-dfn-for="WorkerGlobalScope">worker set</dfn> (a <span>set</span> of
9653096531
<code>WorkerGlobalScope</code> objects). It is initially empty and populated when the worker
9653196532
creates or obtains further workers.</p>
9653296533

0 commit comments

Comments
 (0)