AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.9.2" />

 EventTargetExtensions

static class EventTargetExtensions
A set of extensions for EventTarget objects.
public static bool Fire<T>(this EventTarget target, Action<T> initializer, EventTarget targetOverride = null) where T : Event

Firing an event means dispatching the initialized (and trusted) event at the specified event target.

public static void FireLoadOrErrorEvent(this EventTarget target, Task task)

Fires either the error or the load simple event. Which one is fired depends on the state of the provided task.

public static bool FireSimpleEvent(this EventTarget target, string eventName, bool bubble = false, bool cancelable = false)

Firing a simple event named e means that a trusted event with a name, which does not bubble, is not cancelable and which uses the Event interface. It is created and dispatched at the given target.