Skip to content

Commit f91dfd2

Browse files
Editorial: use [=this=] to get global
SHA: eaa69f3 Reason: push, by @reillyeon Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 95b4a89 commit f91dfd2

File tree

1 file changed

+15
-34
lines changed

1 file changed

+15
-34
lines changed

index.html

Lines changed: 15 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,8 +1157,7 @@ <h1 id="title" class="title">Geolocation API</h1>
11571157
method steps are:
11581158
</p>
11591159
<ol class="algorithm">
1160-
<li>If the <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#current-settings-object" id="ref-for-index-term-current-settings-object-1">current settings object</a>'s <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global" id="ref-for-index-term-relevant-global-object-1">relevant global object</a>'s
1161-
<a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/window-object.html#concept-document-window" id="ref-for-index-term-associated-document-1">associated <code>Document</code></a> is not <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#fully-active" id="ref-for-index-term-fully-active-for-document-1">fully active</a>:
1160+
<li>If the <a data-link-type="dfn" data-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-index-term-this-1">this</a>'s <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global" id="ref-for-index-term-relevant-global-object-1">relevant global object</a>'s <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/window-object.html#concept-document-window" id="ref-for-index-term-associated-document-1">associated <code>Document</code></a> is not <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#fully-active" id="ref-for-index-term-fully-active-for-document-1">fully active</a>:
11621161
<ol>
11631162
<li><a data-link-type="dfn" href="#dfn-call-back-with-error" class="internalDFN" id="ref-for-dfn-call-back-with-error-1">Call back with error</a> <var data-type="PositionErrorCallback?">errorCallback</var> and
11641163
<a data-link-type="idl" href="#dom-geolocationpositionerror-position_unavailable" class="internalDFN" id="ref-for-dom-geolocationpositionerror-position_unavailable-1"><code>POSITION_UNAVAILABLE</code></a>.
@@ -1225,8 +1224,7 @@ <h1 id="title" class="title">Geolocation API</h1>
12251224
method steps are:
12261225
</p>
12271226
<ol class="algorithm">
1228-
<li>If the <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#current-settings-object" id="ref-for-index-term-current-settings-object-2">current settings object</a>'s <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global" id="ref-for-index-term-relevant-global-object-2">relevant global object</a>'s
1229-
<a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/window-object.html#concept-document-window" id="ref-for-index-term-associated-document-2">associated <code>Document</code></a> is not <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#fully-active" id="ref-for-index-term-fully-active-for-document-2">fully active</a>:
1227+
<li>If the <a data-link-type="dfn" data-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-index-term-this-2">this</a>'s <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global" id="ref-for-index-term-relevant-global-object-2">relevant global object</a>'s <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/window-object.html#concept-document-window" id="ref-for-index-term-associated-document-2">associated <code>Document</code></a> is not <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#fully-active" id="ref-for-index-term-fully-active-for-document-2">fully active</a>:
12301228
<ol>
12311229
<li><a data-link-type="dfn" href="#dfn-call-back-with-error" class="internalDFN" id="ref-for-dfn-call-back-with-error-2">Call back with error</a> passing <var data-type="PositionErrorCallback?">errorCallback</var> and
12321230
<a data-link-type="idl" href="#dom-geolocationpositionerror-position_unavailable" class="internalDFN" id="ref-for-dom-geolocationpositionerror-position_unavailable-2"><code>POSITION_UNAVAILABLE</code></a>.
@@ -1238,7 +1236,7 @@ <h1 id="title" class="title">Geolocation API</h1>
12381236
<li>Let <var data-type="unsigned long">watchId</var> be an <a data-link-type="dfn" data-type="dfn" href="https://infra.spec.whatwg.org/#implementation-defined" id="ref-for-index-term-implementation-defined-1">implementation-defined</a>
12391237
<a data-link-type="idl" data-lt="unsigned long" data-type="interface" href="https://webidl.spec.whatwg.org/#idl-unsigned-long" id="ref-for-index-term-unsigned-long-type-2"><code>unsigned long</code></a> that is greater than zero.
12401238
</li>
1241-
<li><a data-link-type="dfn" data-type="dfn" href="https://infra.spec.whatwg.org/#list-append" id="ref-for-index-term-append-for-list-1">Append</a> <var data-type="unsigned long">watchId</var> to <a data-link-type="dfn" data-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-index-term-this-1">this</a>'s
1239+
<li><a data-link-type="dfn" data-type="dfn" href="https://infra.spec.whatwg.org/#list-append" id="ref-for-index-term-append-for-list-1">Append</a> <var data-type="unsigned long">watchId</var> to <a data-link-type="dfn" data-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-index-term-this-3">this</a>'s
12421240
<a data-lt="[[watchIDs]]" href="#dfn-watchids" class="internalDFN" data-link-type="idl" id="ref-for-dfn-watchids-1"><code>[[watchIDs]]</code></a>.
12431241
</li>
12441242
<li><a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel" id="ref-for-index-term-in-parallel-2">In parallel</a>, <a data-link-type="dfn" href="#dfn-request-a-position" class="internalDFN" id="ref-for-dfn-request-a-position-3">request a position</a> passing
@@ -1299,7 +1297,7 @@ <h1 id="title" class="title">Geolocation API</h1>
12991297
When <dfn data-export="" data-dfn-type="method" id="dom-geolocation-clearwatch" data-idl="operation" data-title="clearWatch()" data-dfn-for="Geolocation" data-type="undefined" data-lt="clearWatch()|clearWatch(watchId)" data-local-lt="Geolocation.clearWatch|Geolocation.clearWatch()|clearWatch" tabindex="0" aria-haspopup="dialog"><code>clearWatch()</code></dfn> is invoked, the user agent <em class="rfc2119">MUST</em>:
13001298
</p>
13011299
<ol class="algorithm">
1302-
<li><a data-link-type="dfn" data-type="dfn" href="https://infra.spec.whatwg.org/#list-remove" id="ref-for-index-term-remove-for-list-1">Remove</a> <var>watchId</var> from <a data-link-type="dfn" data-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-index-term-this-2">this</a>'s
1300+
<li><a data-link-type="dfn" data-type="dfn" href="https://infra.spec.whatwg.org/#list-remove" id="ref-for-index-term-remove-for-list-1">Remove</a> <var>watchId</var> from <a data-link-type="dfn" data-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-index-term-this-4">this</a>'s
13031301
<a data-lt="[[watchIDs]]" href="#dfn-watchids" class="internalDFN" data-link-type="idl" id="ref-for-dfn-watchids-2"><code>[[watchIDs]]</code></a>.
13041302
</li>
13051303
</ol>
@@ -1315,10 +1313,9 @@ <h1 id="title" class="title">Geolocation API</h1>
13151313
<var data-type="PositionOptions">options</var>, and an optional <var data-type="unsigned long">watchId</var>:
13161314
</p>
13171315
<ol class="algorithm">
1318-
<li>Let <var data-type="List">watchIDs</var> be <a data-link-type="dfn" data-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-index-term-this-3">this</a>'s <a data-lt="[[watchIDs]]" href="#dfn-watchids" class="internalDFN" data-link-type="idl" id="ref-for-dfn-watchids-3"><code>[[watchIDs]]</code></a>.
1316+
<li>Let <var data-type="List">watchIDs</var> be <a data-link-type="dfn" data-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-index-term-this-5">this</a>'s <a data-lt="[[watchIDs]]" href="#dfn-watchids" class="internalDFN" data-link-type="idl" id="ref-for-dfn-watchids-3"><code>[[watchIDs]]</code></a>.
13191317
</li>
1320-
<li>Let <var data-type="Document">document</var> be the <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#current-settings-object" id="ref-for-index-term-current-settings-object-3">current settings object</a>'s
1321-
<a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global" id="ref-for-index-term-relevant-global-object-3">relevant global object</a>'s <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/window-object.html#concept-document-window" id="ref-for-index-term-associated-document-3">associated <code>Document</code></a>.
1318+
<li>Let <var data-type="Document">document</var> be the <a data-link-type="dfn" data-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-index-term-this-6">this</a>'s <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global" id="ref-for-index-term-relevant-global-object-3">relevant global object</a>'s <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/window-object.html#concept-document-window" id="ref-for-index-term-associated-document-3">associated <code>Document</code></a>.
13221319
</li>
13231320
<li data-tests="">If <var data-type="Document">document</var> is not <a data-link-type="dfn" data-type="dfn" href="https://html.spec.whatwg.org/multipage/iframe-embed-object.html#allowed-to-use" id="ref-for-index-term-allowed-to-use-1">allowed to use</a> the
13241321
"geolocation" feature:
@@ -1411,7 +1408,7 @@ <h1 id="title" class="title">Geolocation API</h1>
14111408
<var data-type="unsigned long">watchId</var>.
14121409
</p>
14131410
<ol class="algorithm">
1414-
<li>If <var data-type="unsigned long">watchId</var> was passed and <a data-link-type="dfn" data-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-index-term-this-4">this</a>'s
1411+
<li>If <var data-type="unsigned long">watchId</var> was passed and <a data-link-type="dfn" data-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-index-term-this-7">this</a>'s
14151412
<a data-lt="[[watchIDs]]" href="#dfn-watchids" class="internalDFN" data-link-type="idl" id="ref-for-dfn-watchids-4"><code>[[watchIDs]]</code></a> does not <a data-link-type="dfn" data-type="dfn" href="https://infra.spec.whatwg.org/#list-contain" id="ref-for-index-term-contains-for-list-2">contain</a> <var data-type="unsigned long">watchId</var>,
14161413
terminate this algorithm.
14171414
</li>
@@ -1421,7 +1418,7 @@ <h1 id="title" class="title">Geolocation API</h1>
14211418
<li>Let <var>timeoutTime</var> be the sum of <var data-type="EpochTimeStamp">acquisitionTime</var> and
14221419
<var data-type="PositionOptions">options</var>.<a data-link-type="idl" href="#dom-positionoptions-timeout" class="internalDFN" id="ref-for-dom-positionoptions-timeout-2"><code>timeout</code></a>.
14231420
</li>
1424-
<li>Let <var data-type="GeolocationPosition">cachedPosition</var> be <a data-link-type="dfn" data-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-index-term-this-5">this</a>'s
1421+
<li>Let <var data-type="GeolocationPosition">cachedPosition</var> be <a data-link-type="dfn" data-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-index-term-this-8">this</a>'s
14251422
<a data-lt="[[cachedPosition]]" href="#dfn-cachedposition" class="internalDFN" data-link-type="idl" id="ref-for-dfn-cachedposition-2"><code>[[cachedPosition]]</code></a>.
14261423
</li>
14271424
<li>Create an implementation-specific <var>timeout</var> task that elapses at
@@ -1484,7 +1481,7 @@ <h1 id="title" class="title">Geolocation API</h1>
14841481
passing <var data-type="EpochTimeStamp">acquisitionTime</var> and
14851482
<var data-type="PositionOptions">options</var>.<a data-link-type="idl" href="#dom-positionoptions-enablehighaccuracy" class="internalDFN" id="ref-for-dom-positionoptions-enablehighaccuracy-4"><code>enableHighAccuracy</code></a>.
14861483
</li>
1487-
<li>Set <a data-link-type="dfn" data-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-index-term-this-6">this</a>'s <a data-lt="[[cachedPosition]]" href="#dfn-cachedposition" class="internalDFN" data-link-type="idl" id="ref-for-dfn-cachedposition-3"><code>[[cachedPosition]]</code></a> to
1484+
<li>Set <a data-link-type="dfn" data-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-index-term-this-9">this</a>'s <a data-lt="[[cachedPosition]]" href="#dfn-cachedposition" class="internalDFN" data-link-type="idl" id="ref-for-dfn-cachedposition-3"><code>[[cachedPosition]]</code></a> to
14881485
<var>position</var>.
14891486
</li>
14901487
</ol>
@@ -2674,8 +2671,6 @@ <h1 id="title" class="title">Geolocation API</h1>
26742671
<span class="index-term" data-href="https://html.spec.whatwg.org/multipage/iframe-embed-object.html#allowed-to-use" id="index-term-allowed-to-use" tabindex="0" aria-haspopup="dialog">allowed to use</span>
26752672
</li><li>
26762673
<span class="index-term" data-href="https://html.spec.whatwg.org/multipage/window-object.html#concept-document-window" id="index-term-associated-document" tabindex="0" aria-haspopup="dialog">associated Document</span>
2677-
</li><li>
2678-
<span class="index-term" data-href="https://html.spec.whatwg.org/multipage/webappapis.html#current-settings-object" id="index-term-current-settings-object" tabindex="0" aria-haspopup="dialog">current settings object</span>
26792674
</li><li>
26802675
<span class="index-term" data-href="https://html.spec.whatwg.org/multipage/browsers.html#fully-active" id="index-term-fully-active-for-document" tabindex="0" aria-haspopup="dialog">fully active (for <code>Document</code>)</span>
26812676
</li><li>
@@ -3572,22 +3567,6 @@ <h1 id="title" class="title">Geolocation API</h1>
35723567
</li><li>
35733568
<a href="#ref-for-index-term-associated-document-3" title="§ 6.5 Request a position">§ 6.5 Request a position</a>
35743569
</li>
3575-
</ul>
3576-
</div><div class="dfn-panel" hidden="" role="dialog" aria-modal="true" id="dfn-panel-for-index-term-current-settings-object" aria-label="Links in this document to definition: current settings object">
3577-
<span class="caret"></span>
3578-
<div>
3579-
<a class="self-link" href="https://html.spec.whatwg.org/multipage/webappapis.html#current-settings-object" aria-label="Permalink for definition: current settings object. Activate to close this dialog.">Permalink</a>
3580-
3581-
</div>
3582-
<p><b>Referenced in:</b></p>
3583-
<ul>
3584-
<li>
3585-
<a href="#ref-for-index-term-current-settings-object-1" title="§ 6.2 getCurrentPosition() method">§ 6.2 getCurrentPosition() method</a>
3586-
</li><li>
3587-
<a href="#ref-for-index-term-current-settings-object-2" title="§ 6.3 watchPosition() method">§ 6.3 watchPosition() method</a>
3588-
</li><li>
3589-
<a href="#ref-for-index-term-current-settings-object-3" title="§ 6.5 Request a position">§ 6.5 Request a position</a>
3590-
</li>
35913570
</ul>
35923571
</div><div class="dfn-panel" hidden="" role="dialog" aria-modal="true" id="dfn-panel-for-index-term-fully-active-for-document" aria-label="Links in this document to definition: fully active (for Document)">
35933572
<span class="caret"></span>
@@ -4176,13 +4155,15 @@ <h1 id="title" class="title">Geolocation API</h1>
41764155
<p><b>Referenced in:</b></p>
41774156
<ul>
41784157
<li>
4179-
<a href="#ref-for-index-term-this-1" title="§ 6.3 watchPosition() method">§ 6.3 watchPosition() method</a>
4158+
<a href="#ref-for-index-term-this-1" title="§ 6.2 getCurrentPosition() method">§ 6.2 getCurrentPosition() method</a>
4159+
</li><li>
4160+
<a href="#ref-for-index-term-this-2" title="§ 6.3 watchPosition() method">§ 6.3 watchPosition() method</a> <a href="#ref-for-index-term-this-3" title="Reference 2">(2)</a>
41804161
</li><li>
4181-
<a href="#ref-for-index-term-this-2" title="§ 6.4 clearWatch() method">§ 6.4 clearWatch() method</a>
4162+
<a href="#ref-for-index-term-this-4" title="§ 6.4 clearWatch() method">§ 6.4 clearWatch() method</a>
41824163
</li><li>
4183-
<a href="#ref-for-index-term-this-3" title="§ 6.5 Request a position">§ 6.5 Request a position</a>
4164+
<a href="#ref-for-index-term-this-5" title="§ 6.5 Request a position">§ 6.5 Request a position</a> <a href="#ref-for-index-term-this-6" title="Reference 2">(2)</a>
41844165
</li><li>
4185-
<a href="#ref-for-index-term-this-4" title="§ 6.6 Acquire a position">§ 6.6 Acquire a position</a> <a href="#ref-for-index-term-this-5" title="Reference 2">(2)</a> <a href="#ref-for-index-term-this-6" title="Reference 3">(3)</a>
4166+
<a href="#ref-for-index-term-this-7" title="§ 6.6 Acquire a position">§ 6.6 Acquire a position</a> <a href="#ref-for-index-term-this-8" title="Reference 2">(2)</a> <a href="#ref-for-index-term-this-9" title="Reference 3">(3)</a>
41864167
</li>
41874168
</ul>
41884169
</div><div class="dfn-panel" hidden="" role="dialog" aria-modal="true" id="dfn-panel-for-index-term-undefined-type" aria-label="Links in this document to definition: undefined type">

0 commit comments

Comments
 (0)