@@ -1102,9 +1102,9 @@ with the internal slots described in the following table:
1102
1102
1103
1103
<div algorithm="is sensor activated">
1104
1104
1105
- The getter of the {{Sensor/activated!!attribute}} attribute must run these steps:
1105
+ The {{Sensor/activated!!attribute}} getter steps are :
1106
1106
1107
- 1. If <strong> this</strong> .{{[[state]]}} is "activated",
1107
+ 1. If [= this=] .{{[[state]]}} is "activated",
1108
1108
return true.
1109
1109
1. Otherwise, return false.
1110
1110
</div>
@@ -1113,32 +1113,32 @@ with the internal slots described in the following table:
1113
1113
1114
1114
<div algorithm="sensor has reading">
1115
1115
1116
- The getter of the {{Sensor/hasReading!!attribute}} attribute must run these steps:
1116
+ The {{Sensor/hasReading!!attribute}} getter steps are :
1117
1117
1118
- 1. Let |timestamp| be the result of invoking [=get value from latest reading=] with <strong> this</strong> and "timestamp" as arguments.
1118
+ 1. Let |timestamp| be the result of invoking [=get value from latest reading=] with [= this=] and "timestamp" as arguments.
1119
1119
1. If |timestamp| is not null, return true.
1120
1120
1. Otherwise, return false.
1121
1121
</div>
1122
1122
1123
1123
### Sensor.timestamp ### {#sensor-timestamp}
1124
1124
1125
- The getter of the {{Sensor/timestamp!!attribute}} attribute returns
1126
- the result of invoking [=get value from latest reading=] with <strong> this</strong>
1127
- and "timestamp" as arguments. It represents a [=reading timestamp=] .
1125
+ The {{Sensor/timestamp!!attribute}} getter steps are to return
1126
+ the result of invoking [=get value from latest reading=] with [= this=]
1127
+ and "timestamp" as arguments.
1128
1128
1129
+ It represents a [=reading timestamp=] .
1129
1130
1130
1131
### Sensor.start() ### {#sensor-start}
1131
1132
1132
1133
<div algorithm="to start a sensor">
1133
1134
1134
- The {{Sensor/start()}} method must run these steps:
1135
+ The {{Sensor/start()}} method steps are :
1135
1136
1136
- 1. Let |sensor_state| be the value of |sensor_instance|.{{[[state]]}} .
1137
- 1. If |sensor_state| is either "activating"
1138
- or "activated", then return.
1139
- 1. Set |sensor_instance|.{{[[state]]}} to "activating".
1137
+ 1. If [=this=] .{{[[state]]}} is either "activating" or "activated", then
1138
+ return.
1139
+ 1. Set [=this=] .{{[[state]]}} to "activating".
1140
1140
1. Run these sub-steps [=in parallel=] :
1141
- 1. let |connected| be the result of invoking [=connect to sensor=] with |sensor_instance|
1141
+ 1. Let |connected| be the result of invoking [=connect to sensor=] with [=this=]
1142
1142
as argument.
1143
1143
1. If |connected| is false, then
1144
1144
1. Let |e| be the result of [=created|creating=] a
@@ -1153,29 +1153,29 @@ and "timestamp" as arguments. It represents a [=reading timestamp=].
1153
1153
correctly diagnosing the reason for the rejection
1154
1154
and might lead to confusing instructions to the user,
1155
1155
but it is a tradeoff some User Agent might choose to make. -->
1156
- 1. Queue a task to run [=notify error=] with |e| and |sensor_instance | as arguments.
1156
+ 1. Queue a task to run [=notify error=] with [=this=] and |e | as arguments.
1157
1157
1. Return.
1158
1158
1. Let |permission_state| be the result of invoking
1159
- [=request sensor access=] with |sensor_instance| as argument.
1159
+ [=request sensor access=] with [=this=] as argument.
1160
1160
1. If |permission_state| is "granted",
1161
- 1. Invoke [=activate a sensor object=] with |sensor_instance| as argument.
1161
+ 1. Invoke [=activate a sensor object=] with [=this=] as argument.
1162
1162
1. Otherwise, if |permission_state| is "denied",
1163
- 1. let |e| be the result of [=created|creating=]
1163
+ 1. Let |e| be the result of [=created|creating=]
1164
1164
a "{{NotAllowedError!!exception}} " {{DOMException}} .
1165
- 1. Queue a task to run [=notify error=] with |e| and |sensor_instance | as arguments.
1165
+ 1. Queue a task to run [=notify error=] with [=this=] and |e | as arguments.
1166
1166
</div>
1167
1167
1168
1168
1169
1169
### Sensor.stop() ### {#sensor-stop}
1170
1170
1171
1171
<div algorithm="to stop a sensor">
1172
1172
1173
- The {{Sensor/stop()}} method must run these steps:
1173
+ The {{Sensor/stop()}} method steps are :
1174
1174
1175
- 1. If |sensor_instance| .{{[[state]]}} is "idle", then return.
1176
- 1. Set |sensor_instance| .{{[[state]]}} to "idle".
1175
+ 1. If [=this=] .{{[[state]]}} is "idle", then return.
1176
+ 1. Set [=this=] .{{[[state]]}} to "idle".
1177
1177
1. Run these sub-steps [=in parallel=] :
1178
- 1. Invoke [=deactivate a sensor object=] with |sensor_instance| as argument.
1178
+ 1. Invoke [=deactivate a sensor object=] with [=this=] as argument.
1179
1179
</div>
1180
1180
1181
1181
@@ -1188,7 +1188,7 @@ to notify that new [=sensor reading|reading=] is available.
1188
1188
### Sensor.onactivate ### {#sensor-onactivate}
1189
1189
1190
1190
{{Sensor/onactivate}} is an {{EventHandler}} which is called when
1191
- <strong> this</strong> .{{[[state]]}} transitions from "activating" to "activated".
1191
+ [= this=] .{{[[state]]}} transitions from "activating" to "activated".
1192
1192
1193
1193
1194
1194
### Sensor.onerror ### {#sensor-onerror}
@@ -1242,7 +1242,9 @@ dictionary SensorErrorEventInit : EventInit {
1242
1242
1243
1243
### SensorErrorEvent.error ### {#sensor-error-event-error}
1244
1244
1245
- Gets the {{DOMException}} object passed to {{SensorErrorEventInit}} .
1245
+ The {{SensorErrorEvent/error!!attribute}} getter steps are to return the value it was initialized to.
1246
+
1247
+ It represents the {{DOMException}} object passed to {{SensorErrorEventInit}} .
1246
1248
1247
1249
<h2 id="abstract-operations">Abstract Operations</h2>
1248
1250
@@ -1361,7 +1363,7 @@ Gets the {{DOMException}} object passed to {{SensorErrorEventInit}}.
1361
1363
1. Invoke [=deactivate a sensor object=] with |s| as argument.
1362
1364
1. Let |e| be the result of [=created|creating=]
1363
1365
a "{{NotAllowedError!!exception}} " {{DOMException}} .
1364
- 1. Queue a task to run [=notify error=] with |e | and |s | as arguments.
1366
+ 1. Queue a task to run [=notify error=] with |s | and |e | as arguments.
1365
1367
</div>
1366
1368
1367
1369
0 commit comments