AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.14.0-alpha-796" />

 ScriptOptions

public sealed class ScriptOptions
Transport object for running scripts.
public IDocument Document { get; }

Gets the parent document of the executing script.

public IHtmlScriptElement Element { get; set; }

Gets or sets the script element that triggered the invocation.

public Encoding Encoding { get; set; }

Gets or sets the encoding that has been selected for the script.

public IEventLoop EventLoop { get; }

Gets the event loop for the executing script.

public ScriptOptions(IDocument document, IEventLoop loop)

Creates new script options for the given document.