Skip to content

Commit de05002

Browse files
Callback with error if doc is not fully active (#97)
1 parent 981581e commit de05002

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

index.html

+16-6
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,12 @@ <h2>
544544
method steps are:
545545
</p>
546546
<ol class="algorithm">
547-
<li>[=Request position=], passing |successCallback|, |errorCallback|,
548-
|options|, and (repeats) false.
547+
<li>If the [=current settings object=]'s [=associated `Document`=] is
548+
not [=Document/fully active=], [=call back with error=]
549+
|errorCallback| and {{GeolocationPositionError/POSITION_UNAVAILABLE}}.
550+
</li>
551+
<li>Otherwise, [=request position=], passing |successCallback|,
552+
|errorCallback|, |options|, and (repeats) false.
549553
</li>
550554
<li>Return `undefined`.
551555
</li>
@@ -562,6 +566,16 @@ <h2>
562566
method steps are:
563567
</p>
564568
<ol class="algorithm">
569+
<li>If the [=current settings object=]'s [=associated `Document`=] is
570+
not [=Document/fully active=]:
571+
<ol>
572+
<li>[=Call back with error=] |errorCallback| and
573+
{{GeolocationPositionError/POSITION_UNAVAILABLE}}.
574+
</li>
575+
<li>Return an [=implementation-defined=] {{long}}.
576+
</li>
577+
</ol>
578+
</li>
565579
<li>Let |watchId:long| be [=request position=], passing
566580
|successCallback|, |errorCallback|, |options|, and (repeats) true.
567581
</li>
@@ -595,10 +609,6 @@ <h2>
595609
optionally (and only if |repeats| is true) a |previousId:long|.
596610
</p>
597611
<ol class="algorithm">
598-
<li>If the [=current settings object=]'s [=associated `Document`=] is
599-
not [=Document/fully active=], return an [=implementation-defined=]
600-
{{long}}.
601-
</li>
602612
<li>Let |watchTasks:Set| be [=this=]'s
603613
{{Geolocation/[[watchTasks]]}}.
604614
</li>

0 commit comments

Comments
 (0)