To run the named-definition case:

  1. Let A be the following steps:

    1. Fire an event named "a".

  2. Run A.

fire an event is a target stub.

To run the inline-definition case:

  1. Let updateDocument be an algorithm step which is to update the document for history step application.

  2. If ready, run updateDocument.

  3. Otherwise, queue a global task, given updateDocument.

update the document for history step application and queue a global task are target stubs.

To run the named-body remainder case:

  1. Let A be the following steps:

    1. Continue these steps.

    2. Fire an event named "inside-a".

  2. Run A.