@@ -524,21 +524,21 @@ <h2 id="MIDIPort"><a>MIDIPort</a> Interface</h2>
524524 < code > < a href ="#idl-def-MIDIPort "> MIDIPort</ a > </ code >
525525 object.</ p > </ li >
526526
527- < li > < p > If the device's state is already < code > < a
527+ < li > < p > If the device's connection is already < code > < a
528528 href ="#idl-def-MIDIPortConnectionState.open "> "open"</ a > </ code >
529529 (e.g. open() has already been called on this MIDIPort, or the
530530 port has been implicitly opened), jump to the step labeled
531531 < em > success</ em > below.</ p > </ li >
532532
533- < li > < p > If the device's state is < code > < a
533+ < li > < p > If the device's connection is < code > < a
534534 href ="#idl-def-MIDIPortConnectionState.pending "> "pending"</ a > </ code >
535535 (i.e. the connection had been opened and the device was
536536 subsequently disconnected), jump to the step labeled
537537 < em > success</ em > below.</ p > </ li >
538538
539539 < li > < p > If the device's state is < code > < a
540540 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
542542 < code > < a href ="#idl-def-MIDIPort "> MIDIPort</ a > </ code > to
543543 < code > < a href ="#idl-def-MIDIPortConnectionState.pending "> "pending"</ a > </ code > ,
544544 and enqueue a new < code > < a
@@ -555,8 +555,8 @@ <h2 id="MIDIPort"><a>MIDIPort</a> Interface</h2>
555555 < em > failure</ em > below. If the device is available and access is
556556 obtained, continue the following steps.</ p > </ li >
557557
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 >
560560 to the < code > < a href ="#event-midiaccess-statechange "> statechange</ a > </ code >
561561 handler of the < code > < a > MIDIAccess</ a > </ code > and to the
562562 < code > < a href ="#event-midiport-statechange "> statechange</ a > </ code >
0 commit comments