@@ -528,13 +528,13 @@ <h2 id="MIDIPort"><a>MIDIPort</a> Interface</h2>
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
- < em > opened </ em > below.</ p > </ li >
531
+ < em > success </ em > below.</ p > </ li >
532
532
533
533
< li > < p > If the device's state 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
- < em > opened </ em > below.</ p > </ li >
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 > ,
@@ -547,15 +547,15 @@ <h2 id="MIDIPort"><a>MIDIPort</a> Interface</h2>
547
547
handler of the < code > < a > MIDIAccess</ a > </ code > and to the
548
548
< code > < a href ="#event-midiport-statechange "> statechange</ a > </ code >
549
549
handler of the < code > < a href ="#idl-def-MIDIPort "> MIDIPort</ a > </ code >
550
- and jump to the step labeled < em > opened </ em > below.</ p > </ li >
550
+ and jump to the step labeled < em > success </ em > below.</ p > </ li >
551
551
552
552
< li > < p > Attempt to obtain access to the given MIDI device in the
553
553
system. If the device is unavailable (e.g. is already in use by another
554
554
process and cannot be opened, or is disconnected), jump to the step labeled
555
- < em > failure</ em > below. If the device available and access is
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 > < em > < b > success </ b > </ em > : Change the < code > state</ code > attribute of the MIDIPort to
558
+ < li > < p > Change the < code > state</ code > attribute of the MIDIPort to
559
559
< code > "opened"</ 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
@@ -566,16 +566,15 @@ <h2 id="MIDIPort"><a>MIDIPort</a> Interface</h2>
566
566
that is waiting to be sent, asynchronously begin sending that
567
567
data.</ p > </ li >
568
568
569
- < li > < p > < em > < b > opened </ b > </ em > : Call < var > resolver</ var > 's
569
+ < li > < p > < em > < b > success </ b > </ em > : Call < var > resolver</ var > 's
570
570
< code > accept(value)</ code > method with < var > port</ var > as
571
571
value argument.</ p > </ li >
572
572
573
573
< li > < p > Terminate these steps.</ p > </ li >
574
574
575
575
< li > < p > < em > < b > failure</ b > </ em > : Let < var > error</ var > be a new
576
576
< code > < a > DOMException</ a > </ code > . This exception's .name should be
577
- < code > "InvalidAccessError"</ code > if the port is unavailable,
578
- or < code > "InvalidStateError"</ code > if the port is disconnected.</ p > </ li >
577
+ < code > "InvalidAccessError"</ code > if the port is unavailable.</ p > </ li >
579
578
580
579
< li > < p > Call < var > resolver</ var > 's < code > reject(value)</ code > method
581
580
with < var > error</ var > as value argument.</ p > </ li >
0 commit comments