Skip to content

Commit

Permalink
Use a regular Event for AudioContext.onerror (#2593)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoch authored Jul 15, 2024
1 parent 6301a49 commit fd14ad2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2196,7 +2196,7 @@ Attributes</h4>
<ins cite=#2567>
: <dfn>onerror</dfn>
::
An [=event handler=] for the {{ErrorEvent}} dispatched from an {{AudioContext}}. The event
An [=event handler=] for the {{Event}} dispatched from an {{AudioContext}}. The event
type of this handler is <dfn event for=AudioContext>error</dfn> and the user agent can
dispatch this event in the following cases:

Expand Down Expand Up @@ -12941,7 +12941,7 @@ The {{AudioContext}} |audioContext| performs the following steps on <a>rendering

1. [=Queue a media element task=] to execute the following steps:

1. [=Fire an event=] named {{AudioContext/error}} at |audioContext| using {{ErrorEvent}}.
1. [=Fire an event=] named {{AudioContext/error}} at |audioContext|.

1. Set the |audioContext|'s {{[[suspended by user]]}} to <code>false</code>.

Expand All @@ -12958,7 +12958,7 @@ The {{AudioContext}} |audioContext| performs the following steps on <a>rendering

1. [=Queue a media element task=]to execute the following steps:

1. [=Fire an event=] named {{AudioContext/error}} at |audioContext| using {{ErrorEvent}}.
1. [=Fire an event=] named {{AudioContext/error}} at |audioContext|.

Note: An example of system audio resource errors would be when an external or wireless audio device
becoming disconnected during the active rendering of the {{AudioContext}}.
Expand Down

0 comments on commit fd14ad2

Please sign in to comment.