1
1
<pre class="metadata">
2
2
Title : Generic Sensor API
3
+ Level : 1
3
4
Status : ED
4
5
ED : https://w3c.github.io/sensors/
5
6
Shortname : generic-sensor
@@ -20,7 +21,6 @@ Version History: https://github.com/w3c/sensors/commits/gh-pages/index.bs
20
21
Indent : 2
21
22
Repository : w3c/sensors
22
23
Markup Shorthands : markdown on
23
- Inline Github Issues : true
24
24
!Issue Tracking : <a href="https://github.com/w3c/sensors/milestones/Level%201">Level 1 Issues</a>
25
25
!Issue Tracking : <a href="https://github.com/w3c/sensors/milestones/Level%202">Level 2 Issues</a>
26
26
!Test Suite : <a href="https://github.com/w3c/web-platform-tests/tree/master/generic-sensor">web-platform-tests on GitHub</a>
@@ -144,7 +144,7 @@ The Generic Sensor API is designed to make the most common use cases straightfor
144
144
while still enabling more complex use cases.
145
145
146
146
Most devices deployed today do not carry more than one
147
- <a>sensor</a> of each <a lt="sensor types">type </a> .
147
+ <a>sensor</a> of each <a lt="sensor type">sensor types </a> .
148
148
This shouldn't come as a surprise since use cases for more than
149
149
a <a>sensor</a> of a given <a lt="sensor types">type</a> are rare
150
150
and generally limited to specific <a>sensor types</a> such as
@@ -392,7 +392,7 @@ are encouraged to provide domain-specific definitions of
392
392
<a>high-level</a> and <a>low-level</a> sensors
393
393
for the given <a>sensor types</a> they are targeting.
394
394
395
- <a>Sensor readings</a> from different sensor <a>types</a> can be combined together
395
+ <a>Sensor readings</a> from different <a>sensor types</a> can be combined together
396
396
through a process called <dfn>sensor fusion</dfn> .
397
397
This process provides <a lt="high-level">higher-level</a> or
398
398
more accurate data (often at the cost of increased latency).
@@ -867,7 +867,7 @@ Abstract Operations {#abstract-operations}
867
867
1. If |sensor|’s <a>reporting flag</a> is set,
868
868
1. abort these steps.
869
869
1. Set |sensor|’s <a>reporting flag</a> .
870
- 1. Let |reading_instance| be the result of invoking |sensor| <a>type</a> 's associated
870
+ 1. Let |reading_instance| be the result of invoking <a>sensor type</a> 's associated
871
871
<a>Construct SensorReading Object</a> operation,
872
872
passing it |reading| as argument.
873
873
1. Set |sensor|’s <a>current reading</a> to |reading_instance|.
@@ -1064,7 +1064,7 @@ Example WebIDL {#example-webidl}
1064
1064
Here's example WebIDL for a possible extension of this specification
1065
1065
for proximity <a>sensors</a> .
1066
1066
1067
- <pre class=example highlight=WEBidl >
1067
+ <pre class=example>
1068
1068
[Constructor(optional ProximitySensorOptions proximitySensorOptions)]
1069
1069
interface ProximitySensor : Sensor {
1070
1070
readonly attribute ProximitySensorReading? reading;
0 commit comments