[web-bluetooth] Consistency issues in the canonicalizing BluetoothLEScanFilterInit description (#524)

motla has just created a new issue for https://github.com/WebBluetoothCG/web-bluetooth:

== Consistency issues in the canonicalizing BluetoothLEScanFilterInit description ==
Read the step 9 of [canonicalizing BluetoothLEScanFilterInit](https://webbluetoothcg.github.io/web-bluetooth/#bluetoothlescanfilterinit-canonicalizing) section:

```
9. If filter.serviceData is present, do the following sub-steps for each key in filter.serviceData.
  (...)
  3. Let service be BluetoothUUID.getService(serviceName).
  (...)
  6. Let dataFilter be filter.serviceData[service] (...)
```

`service` is not a key of filter.serviceData. It's a string representing the service name. So step 9.6. should rather be:
```
  6. Let dataFilter be filter.serviceData[key] (...)
```

---

Same applies to step 7.3. , it should rather be `manufacturerData[key]` instead of `manufacturerData[manufacturerId]`.

Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/524 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 23 September 2020 21:30:41 UTC