@@ -1091,9 +1091,9 @@ with the internal slots described in the following table:
1091
1091
1092
1092
<div algorithm="is sensor activated">
1093
1093
1094
- The getter of the {{Sensor/activated!!attribute}} attribute must run these steps:
1094
+ The {{Sensor/activated!!attribute}} getter steps are :
1095
1095
1096
- 1. If <strong> this</strong> .{{[[state]]}} is "activated",
1096
+ 1. If [= this=] .{{[[state]]}} is "activated",
1097
1097
return true.
1098
1098
1. Otherwise, return false.
1099
1099
</div>
@@ -1102,32 +1102,32 @@ with the internal slots described in the following table:
1102
1102
1103
1103
<div algorithm="sensor has reading">
1104
1104
1105
- The getter of the {{Sensor/hasReading!!attribute}} attribute must run these steps:
1105
+ The {{Sensor/hasReading!!attribute}} getter steps are :
1106
1106
1107
- 1. Let |timestamp| be the result of invoking [=get value from latest reading=] with <strong> this</strong> and "timestamp" as arguments.
1107
+ 1. Let |timestamp| be the result of invoking [=get value from latest reading=] with [= this=] and "timestamp" as arguments.
1108
1108
1. If |timestamp| is not null, return true.
1109
1109
1. Otherwise, return false.
1110
1110
</div>
1111
1111
1112
1112
### Sensor.timestamp ### {#sensor-timestamp}
1113
1113
1114
- The getter of the {{Sensor/timestamp!!attribute}} attribute returns
1115
- the result of invoking [=get value from latest reading=] with <strong> this</strong>
1116
- and "timestamp" as arguments. It represents a [=reading timestamp=] .
1114
+ The {{Sensor/timestamp!!attribute}} getter steps are to return
1115
+ the result of invoking [=get value from latest reading=] with [= this=]
1116
+ and "timestamp" as arguments.
1117
1117
1118
+ It represents a [=reading timestamp=] .
1118
1119
1119
1120
### Sensor.start() ### {#sensor-start}
1120
1121
1121
1122
<div algorithm="to start a sensor">
1122
1123
1123
- The {{Sensor/start()}} method must run these steps:
1124
+ The {{Sensor/start()}} method steps are :
1124
1125
1125
- 1. Let |sensor_state| be the value of |sensor_instance|.{{[[state]]}} .
1126
- 1. If |sensor_state| is either "activating"
1127
- or "activated", then return.
1128
- 1. Set |sensor_instance|.{{[[state]]}} to "activating".
1126
+ 1. If [=this=] .{{[[state]]}} is either "activating" or "activated", then
1127
+ return.
1128
+ 1. Set [=this=] .{{[[state]]}} to "activating".
1129
1129
1. Run these sub-steps [=in parallel=] :
1130
- 1. let |connected| be the result of invoking [=connect to sensor=] with |sensor_instance|
1130
+ 1. Let |connected| be the result of invoking [=connect to sensor=] with [=this=]
1131
1131
as argument.
1132
1132
1. If |connected| is false, then
1133
1133
1. Let |e| be the result of [=created|creating=] a
@@ -1142,29 +1142,29 @@ and "timestamp" as arguments. It represents a [=reading timestamp=].
1142
1142
correctly diagnosing the reason for the rejection
1143
1143
and might lead to confusing instructions to the user,
1144
1144
but it is a tradeoff some User Agent might choose to make. -->
1145
- 1. Queue a task to run [=notify error=] with |e| and |sensor_instance | as arguments.
1145
+ 1. Queue a task to run [=notify error=] with [=this=] and |e | as arguments.
1146
1146
1. Return.
1147
1147
1. Let |permission_state| be the result of invoking
1148
- [=request sensor access=] with |sensor_instance| as argument.
1148
+ [=request sensor access=] with [=this=] as argument.
1149
1149
1. If |permission_state| is "granted",
1150
- 1. Invoke [=activate a sensor object=] with |sensor_instance| as argument.
1150
+ 1. Invoke [=activate a sensor object=] with [=this=] as argument.
1151
1151
1. Otherwise, if |permission_state| is "denied",
1152
- 1. let |e| be the result of [=created|creating=]
1152
+ 1. Let |e| be the result of [=created|creating=]
1153
1153
a "{{NotAllowedError!!exception}} " {{DOMException}} .
1154
- 1. Queue a task to run [=notify error=] with |e| and |sensor_instance | as arguments.
1154
+ 1. Queue a task to run [=notify error=] with [=this=] and |e | as arguments.
1155
1155
</div>
1156
1156
1157
1157
1158
1158
### Sensor.stop() ### {#sensor-stop}
1159
1159
1160
1160
<div algorithm="to stop a sensor">
1161
1161
1162
- The {{Sensor/stop()}} method must run these steps:
1162
+ The {{Sensor/stop()}} method steps are :
1163
1163
1164
- 1. If |sensor_instance| .{{[[state]]}} is "idle", then return.
1165
- 1. Set |sensor_instance| .{{[[state]]}} to "idle".
1164
+ 1. If [=this=] .{{[[state]]}} is "idle", then return.
1165
+ 1. Set [=this=] .{{[[state]]}} to "idle".
1166
1166
1. Run these sub-steps [=in parallel=] :
1167
- 1. Invoke [=deactivate a sensor object=] with |sensor_instance| as argument.
1167
+ 1. Invoke [=deactivate a sensor object=] with [=this=] as argument.
1168
1168
</div>
1169
1169
1170
1170
@@ -1177,7 +1177,7 @@ to notify that new [=sensor reading|reading=] is available.
1177
1177
### Sensor.onactivate ### {#sensor-onactivate}
1178
1178
1179
1179
{{Sensor/onactivate}} is an {{EventHandler}} which is called when
1180
- <strong> this</strong> .{{[[state]]}} transitions from "activating" to "activated".
1180
+ [= this=] .{{[[state]]}} transitions from "activating" to "activated".
1181
1181
1182
1182
1183
1183
### Sensor.onerror ### {#sensor-onerror}
@@ -1231,7 +1231,9 @@ dictionary SensorErrorEventInit : EventInit {
1231
1231
1232
1232
### SensorErrorEvent.error ### {#sensor-error-event-error}
1233
1233
1234
- Gets the {{DOMException}} object passed to {{SensorErrorEventInit}} .
1234
+ The {{SensorErrorEvent/error!!attribute}} getter steps are to return the value it was initialized to.
1235
+
1236
+ It represents the {{DOMException}} object passed to {{SensorErrorEventInit}} .
1235
1237
1236
1238
<h2 id="abstract-operations">Abstract Operations</h2>
1237
1239
@@ -1350,7 +1352,7 @@ Gets the {{DOMException}} object passed to {{SensorErrorEventInit}}.
1350
1352
1. Invoke [=deactivate a sensor object=] with |s| as argument.
1351
1353
1. Let |e| be the result of [=created|creating=]
1352
1354
a "{{NotAllowedError!!exception}} " {{DOMException}} .
1353
- 1. Queue a task to run [=notify error=] with |e | and |s | as arguments.
1355
+ 1. Queue a task to run [=notify error=] with |s | and |e | as arguments.
1354
1356
</div>
1355
1357
1356
1358
0 commit comments