Skip to content

Commit

Permalink
Fix Bikeshed errors in scanning.bs (#487)
Browse files Browse the repository at this point in the history
* Replace [Constructor] attribute with new constructor syntax

* Remove linking for the term "present"
  • Loading branch information
reillyeon authored Apr 27, 2020
1 parent e418b14 commit 3e68c94
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scanning.bs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ spec:web-bluetooth
a {{BluetoothLEScanFilter}} in an active {{BluetoothLEScan}}
cause {{advertisementreceived}} events to be dispatched
to the sending {{BluetoothDevice}}.
A filter matches if the advertisement includes data equal to each <a>present</a> member.
A filter matches if the advertisement includes data equal to each present member.
Usually, you'll only include one member in each filter.
</p>
<p>
Expand Down Expand Up @@ -344,24 +344,24 @@ spec:web-bluetooth
<h3 id="scan-control">Controlling a BLE scan</h3>

<pre class="idl">
[Constructor(optional BluetoothDataFilterInit init)]
interface BluetoothDataFilter {
constructor(optional BluetoothDataFilterInit init);
readonly attribute ArrayBuffer dataPrefix;
readonly attribute ArrayBuffer mask;
};

[Constructor(optional object init)]
interface BluetoothManufacturerDataFilter {
constructor(optional object init);
readonly maplike&lt;unsigned short, BluetoothDataFilter>;
};

[Constructor(optional object init)]
interface BluetoothServiceDataFilter {
constructor(optional object init);
readonly maplike&lt;UUID, BluetoothDataFilter>;
};

[Constructor(optional BluetoothLEScanFilterInit init)]
interface BluetoothLEScanFilter {
constructor(optional BluetoothLEScanFilterInit init);
readonly attribute DOMString? name;
readonly attribute DOMString? namePrefix;
readonly attribute FrozenArray&lt;UUID>? services;
Expand Down Expand Up @@ -417,7 +417,7 @@ spec:web-bluetooth
<code>{{BluetoothUUID/getService()|BluetoothUUID.getService}}(|init|.{{BluetoothLEScanFilterInit/services}}</code>.
</li>
<li>
For each other <a>present</a> member in |init|,
For each other present member in |init|,
set `this`'s attribute with a matching identifier to the value of the member.
</li>
<li>
Expand Down

0 comments on commit 3e68c94

Please sign in to comment.