Table of Contents

Struct HtmlParserOptions

Namespace
AngleSharp.Html.Parser
Assembly
AngleSharp.dll

Contains a number of options for the HTML parser.

public struct HtmlParserOptions
Inherited Members
Extension Methods

Properties

IsAcceptingCustomElementsEverywhere

Gets or sets if custom elements can be used everywhere. Otherwise, custom elements can only be used in locations specified by the official W3C spec (e.g., in the body).

public bool IsAcceptingCustomElementsEverywhere { readonly get; set; }

Property Value

bool

IsEmbedded

Gets or sets if the document is embedded.

public bool IsEmbedded { readonly get; set; }

Property Value

bool

IsKeepingSourceReferences

Gets or sets if references to the original source document should be kept on the elements in form of their tokens.

public bool IsKeepingSourceReferences { readonly get; set; }

Property Value

bool

IsNotConsumingCharacterReferences

Gets or sets if the parsing of character references should be avoided. Note: With this option there is no way to determine from AngleSharp what character references have been fully valid vs. invalid.

public bool IsNotConsumingCharacterReferences { readonly get; set; }

Property Value

bool

IsNotSupportingFrames

Gets or sets if frames should not be supported. Once set this will ignore frame elements and respect noframes elements.

public bool IsNotSupportingFrames { readonly get; set; }

Property Value

bool

IsPreservingAttributeNames

Gets or sets if attribute names should not be normalized. Usually, attribute names will be only seen lower-cased. When this option is activated, the names will be taken as-is.

public bool IsPreservingAttributeNames { readonly get; set; }

Property Value

bool

IsScripting

Gets or sets if scripting is allowed.

public bool IsScripting { readonly get; set; }

Property Value

bool

IsStrictMode

Gets or sets if errors should be treated as exceptions.

public bool IsStrictMode { readonly get; set; }

Property Value

bool

IsSupportingProcessingInstructions

Gets or sets if XML processing instructions should be parsed into DOM nodes.

public bool IsSupportingProcessingInstructions { readonly get; set; }

Property Value

bool

OnCreated

Gets or sets the callback once a new element was created.

public Action<IElement, TextPosition> OnCreated { readonly get; set; }

Property Value

Action<IElement, TextPosition>