Skip to content

Commit

Permalink
Simplify event firing using DOM phrasing
Browse files Browse the repository at this point in the history
see https://dom.spec.whatwg.org/#firing-events-example

this also helps with automated extraction of data from specs
  • Loading branch information
dontcallmedom committed Jun 3, 2022
1 parent d5ef0b0 commit b1e4821
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.bs
Expand Up @@ -365,10 +365,7 @@ The <dfn constructor for="RTCRtpScriptTransform" lt="RTCRtpScriptTransform(worke
5. Set |transformer|.`[[options]]` to |transformerOptions|.
6. Set |transformer|.`[[readable]]` to |readable|.
7. Set |transformer|.`[[writable]]` to |writable|.
8. Let |event| be the result of [=creating an event=] with {{RTCTransformEvent}}.
9. Set |event|.type attribute to "rtctransform".
10. Set |event|.transformer to |transformer|.
11. Dispatch |event| on |worker|’s global scope.
8. [=Fire an event=] named <dfn event>rtctransform</dfn> using {{RTCTransformEvent}} with {{RTCTransformEvent/transformer}} set to |transformer| on |worker|’s global scope.

// FIXME: Describe error handling (worker closing flag true at RTCRtpScriptTransform creation time. And worker being terminated while transform is processing data).

Expand Down

0 comments on commit b1e4821

Please sign in to comment.