Table of Contents

Interface IShadowRoot

Namespace
AngleSharp.Dom
Assembly
AngleSharp.dll

The ShadowRoot interface represents the shadow root.

[DomName("ShadowRoot")]
public interface IShadowRoot : IDocumentFragment, INode, IEventTarget, IMarkupFormattable, IParentNode, INonElementParentNode
Inherited Members
Extension Methods

Properties

ActiveElement

Gets the currently focused element in the shadow tree, if any.

[DomName("activeElement")]
IElement? ActiveElement { get; }

Property Value

IElement

Host

Gets the host element, which contains this shadow root.

[DomName("host")]
IElement Host { get; }

Property Value

IElement

InnerHtml

Gets the markup of the current shadow root's contents.

[DomName("innerHTML")]
string InnerHtml { get; set; }

Property Value

string

Mode

Gets the mode of this shadow root.

ShadowRootMode Mode { get; }

Property Value

ShadowRootMode

StyleSheets

Gets the shadow root style sheets.

[DomName("styleSheets")]
IStyleSheetList StyleSheets { get; }

Property Value

IStyleSheetList