@@ -524,21 +524,21 @@ <h2 id="MIDIPort"><a>MIDIPort</a> Interface</h2>
524
524
< code > < a href ="#idl-def-MIDIPort "> MIDIPort</ a > </ code >
525
525
object.</ p > </ li >
526
526
527
- < li > < p > If the device's state is already < code > < a
527
+ < li > < p > If the device's connection is already < code > < a
528
528
href ="#idl-def-MIDIPortConnectionState.open "> "open"</ a > </ code >
529
529
(e.g. open() has already been called on this MIDIPort, or the
530
530
port has been implicitly opened), jump to the step labeled
531
531
< em > success</ em > below.</ p > </ li >
532
532
533
- < li > < p > If the device's state is < code > < a
533
+ < li > < p > If the device's connection is < code > < a
534
534
href ="#idl-def-MIDIPortConnectionState.pending "> "pending"</ a > </ code >
535
535
(i.e. the connection had been opened and the device was
536
536
subsequently disconnected), jump to the step labeled
537
537
< em > success</ em > below.</ p > </ li >
538
538
539
539
< li > < p > If the device's state is < code > < a
540
540
href ="#idl-def-MIDIPortDeviceState.disconnected "> "disconnected"</ a > </ code > ,
541
- change the < code > < a href =""> state </ a > </ code > attribute of the
541
+ change the < code > < a href =""> connection </ a > </ code > attribute of the
542
542
< code > < a href ="#idl-def-MIDIPort "> MIDIPort</ a > </ code > to
543
543
< code > < a href ="#idl-def-MIDIPortConnectionState.pending "> "pending"</ a > </ code > ,
544
544
and enqueue a new < code > < a
@@ -555,8 +555,8 @@ <h2 id="MIDIPort"><a>MIDIPort</a> Interface</h2>
555
555
< em > failure</ em > below. If the device is available and access is
556
556
obtained, continue the following steps.</ p > </ li >
557
557
558
- < li > < p > Change the < code > state </ code > attribute of the MIDIPort to
559
- < code > "opened "</ code > , and enqueue a new < code > < a > MIDIConnectionEvent</ a > </ code >
558
+ < li > < p > Change the < code > connection </ code > attribute of the MIDIPort to
559
+ < code > "open "</ code > , and enqueue a new < code > < a > MIDIConnectionEvent</ a > </ code >
560
560
to the < code > < a href ="#event-midiaccess-statechange "> statechange</ a > </ code >
561
561
handler of the < code > < a > MIDIAccess</ a > </ code > and to the
562
562
< code > < a href ="#event-midiport-statechange "> statechange</ a > </ code >
0 commit comments