这是indexloc提供的服务,不要输入任何密码
Skip to content

Commit 3a7de92

Browse files
committed
Fix minor typos
1 parent cab3589 commit 3a7de92

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<h2>Introduction</h2>
8080
<p>
8181
The Web MIDI API specification defines a means for web developers to
82-
enumerate, manipulate and access MIDI devices - for example interfaces that may provide hardware MIDI ports with other devices plugged in to them and USB devices that support the USB-MIDI specification. Having a Web API for MIDI enables web applications that use existing software and
82+
enumerate, manipulate and access MIDI devices - for example, interfaces that may provide hardware MIDI ports with other devices plugged in to them and USB devices that support the USB-MIDI specification. Having a Web API for MIDI enables web applications that use existing software and
8383
hardware synthesizers, hardware music controllers and light systems and other mechanical
8484
apparatus controlled by MIDI. This API has been defined with this wide variety of use cases in mind.
8585
</p>
@@ -169,7 +169,7 @@ <h2>Extensions to the <dfn>Navigator</dfn> interface</h2>
169169
and choose interfaces on an individual basis), although
170170
this is not required. The system may also choose to prompt
171171
(or not) based on whether system exclusive support is
172-
requested, as system exclusive has greater privacy and
172+
requested, as system exclusive access has greater privacy and
173173
security implications.</p>
174174
<p>If the user declines or the call is denied for any other reason, the Promise is rejected with a <a>DOMException</a> parameter.
175175
</p>
@@ -289,20 +289,20 @@ <h3 id="MIDIOutputMap"><dfn>MIDIOutputMap</dfn> Interface</h3>
289289
readonly maplike &lt;DOMString, MIDIOutput>;
290290
};
291291
</pre>
292-
<p><a>MIDIOutputMap</a> is a maplike interface whose value is a MIDIOutput instance and key is its ID.</p>
292+
<p>The <a>MIDIOutputMap</a> is a maplike interface whose value is a <a>MIDIOutput</a> instance and key is its ID.</p>
293293
<p>This type is used to represent all the currently available MIDI output ports. This enables:
294294
<pre class="example"> // to tell how many entries there are:
295295
var numberOfMIDIOutputs = outputs.size;
296296

297297
// add each of the ports to a &lt;select&gt; box
298-
outputs.forEach( function( key, port ) {
298+
outputs.forEach( function( port, key ) {
299299
var opt = document.createElement("option");
300300
opt.text = port.name;
301301
document.getElementById("outputportselector").add(opt);
302302
});
303303

304304
// or you could express in ECMAScript 6 as:
305-
for (output of outputs.values()) {
305+
for (let output of outputs.values()) {
306306
var opt = document.createElement("option");
307307
opt.text = output.name;
308308
document.getElementById("outputportselector").add(opt);
@@ -566,7 +566,7 @@ <h2 id="MIDIPort"><dfn>MIDIPort</dfn> Interface</h2>
566566
<li><p>If the port is already closed (its <a
567567
data-lt="MIDIPort.connection">.connection</a> is <a
568568
data-lt="MIDIPortConnectionState.closed">"closed"</a>
569-
- e.g. the port has not yet been implicitly or explictly opened,
569+
- e.g. the port has not yet been implicitly or explicitly opened,
570570
or <a data-lt="MIDIPort.close">close()</a>
571571
has already been called on this <a
572572
>MIDIPort</a>), jump to the step
@@ -644,7 +644,7 @@ <h3 id="MIDIInput"><dfn>MIDIInput</dfn> Interface</h3>
644644
MUST be supported by all objects implementing
645645
<a>MIDIInput</a> interface.
646646
</p>
647-
<p>If the handler is set and the state attribute is not <code>"opened"</code>, underlying implementation tries to make the port available, and change the state attribute to <code>"opened"</code>. If succeeded, <a>MIDIConnectionEvent</a> is delived to the corresponding <code>MIDIPort</code> and <code>MIDIAccess</code>.
647+
<p>If the handler is set and the state attribute is not <code>"opened"</code>, underlying implementation tries to make the port available, and change the state attribute to <code>"opened"</code>. If succeeded, <a>MIDIConnectionEvent</a> is delivered to the corresponding <code>MIDIPort</code> and <code>MIDIAccess</code>.
648648
</dd>
649649
</dl>
650650

0 commit comments

Comments
 (0)