Table of Contents

Property OuterHtml

Namespace
DotNetBrowser.Dom
Assembly
DotNetBrowser.dll

OuterHtml

Gets or sets the outer HTML of the current element.

string OuterHtml { get; set; }

Property Value

string

The string that represents an HTML serialization of this element and its descendants.

Remarks

While the element will be replaced in the document, the variable whose OuterHtml property was set will still hold a reference to the original element. See https://developer.mozilla.org/en-US/docs/Web/API/Element/outerHTML MDN web docs.

Exceptions

ArgumentException

The value is set to null.

DomException

The value was not set.