Skip to content

Commit 2a26cf1

Browse files
Raphael Kubo da Costagithub-actions[bot]
Raphael Kubo da Costa
andcommitted
Sensor.timestamp: Account for "get value from latest reading" returning null (#480)
SHA: 0a4fd13 Reason: push, by rakuco Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5127d7a commit 2a26cf1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

index.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<link href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED" rel="stylesheet">
88
<meta content="Bikeshed version 82ce88815, updated Thu Sep 7 16:33:55 2023 -0700" name="generator">
99
<link href="https://www.w3.org/TR/generic-sensor/" rel="canonical">
10-
<meta content="1e4015653fcfac6b0f8e98dfc43a502cab35c3af" name="document-revision">
10+
<meta content="0a4fd137aa8a2b4fed14c528d9e5d62470d927df" name="document-revision">
1111
<style>
1212
svg g.edge text {
1313
font-size: 8px;
@@ -911,7 +911,7 @@
911911
<div class="head">
912912
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a> </p>
913913
<h1 class="p-name no-ref" id="title">Generic Sensor API</h1>
914-
<p id="w3c-state"><a href="https://www.w3.org/standards/types#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2024-01-25">25 January 2024</time></p>
914+
<p id="w3c-state"><a href="https://www.w3.org/standards/types#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2024-02-17">17 February 2024</time></p>
915915
<details open>
916916
<summary>More details about this document</summary>
917917
<div data-fill-with="spec-metadata">
@@ -1869,7 +1869,9 @@ <h4 class="heading settled" data-level="7.1.6" id="sensor-timestamp"><span class
18691869
<li data-md>
18701870
<p>Let <var>unsafeTimestamp</var> be the result of invoking <a data-link-type="dfn" href="#get-value-from-latest-reading" id="ref-for-get-value-from-latest-reading②">get value from latest reading</a> with <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this③">this</a> and "timestamp" as arguments.</p>
18711871
<li data-md>
1872-
<p>Return <a data-link-type="dfn" href="https://w3c.github.io/hr-time/#dfn-relative-high-resolution-time" id="ref-for-dfn-relative-high-resolution-time">relative high resolution time</a> with <var>unsafeTimestamp</var> and <var>global</var>.</p>
1872+
<p>If <var>unsafeTimestamp</var> is null, return null.</p>
1873+
<li data-md>
1874+
<p>Otherwise, return <a data-link-type="dfn" href="https://w3c.github.io/hr-time/#dfn-relative-high-resolution-time" id="ref-for-dfn-relative-high-resolution-time">relative high resolution time</a> with <var>unsafeTimestamp</var> and <var>global</var>.</p>
18731875
</ol>
18741876
</div>
18751877
<h4 class="heading settled" data-level="7.1.7" id="sensor-start"><span class="secno">7.1.7. </span><span class="content">Sensor.start()</span><a class="self-link" href="#sensor-start"></a></h4>
@@ -3578,7 +3580,7 @@ <h3 class="no-num no-ref heading settled" id="informative"><span class="content"
35783580
<dt id="biblio-accelprint">[ACCELPRINT]
35793581
<dd>Dey, Sanorita, et al.. <a href="http://synrg.csl.illinois.edu/papers/AccelPrint_NDSS14.pdf"><cite>AccelPrint: Imperfections of Accelerometers Make Smartphones Trackable</cite></a>. 2014. Informational. URL: <a href="http://synrg.csl.illinois.edu/papers/AccelPrint_NDSS14.pdf">http://synrg.csl.illinois.edu/papers/AccelPrint_NDSS14.pdf</a>
35803582
<dt id="biblio-api-design-principles">[API-DESIGN-PRINCIPLES]
3581-
<dd>Sangwhan Moon. <a href="https://w3ctag.github.io/design-principles/"><cite>Web Platform Design Principles</cite></a>. URL: <a href="https://w3ctag.github.io/design-principles/">https://w3ctag.github.io/design-principles/</a>
3583+
<dd>Sangwhan Moon; Lea Verou. <a href="https://w3ctag.github.io/design-principles/"><cite>Web Platform Design Principles</cite></a>. URL: <a href="https://w3ctag.github.io/design-principles/">https://w3ctag.github.io/design-principles/</a>
35823584
<dt id="biblio-coordinates-transformation">[COORDINATES-TRANSFORMATION]
35833585
<dd>George W. Collins, II. <a href="http://ads.harvard.edu/books/1989fcm..book/Chapter2.pdf"><cite>The Foundations of Celestial Mechanics</cite></a>. 2004. Informational. URL: <a href="http://ads.harvard.edu/books/1989fcm..book/Chapter2.pdf">http://ads.harvard.edu/books/1989fcm..book/Chapter2.pdf</a>
35843586
<dt id="biblio-extennnnsible">[EXTENNNNSIBLE]

0 commit comments

Comments
 (0)