AngleSharp by Florian Rappl

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

.NET API 886,784 bytes

 HTMLOutputElement

Represents an HTML output element.
using AngleSharp.DOM.Collections; using AngleSharp.DOM.Css; namespace AngleSharp.DOM.Html { internal sealed class HTMLOutputElement : HTMLFormControlElement, IHtmlOutputElement, IHtmlElement, IElement, INode, IEventTarget, IParentNode, IChildNode, INonDocumentTypeChildNode, IElementCssInlineStyle, IValidation { private bool isDefaultValue; private string _defaultValue; private ISettableTokenList _for; public string DefaultValue { get { return _defaultValue ?? TextContent; } set { _defaultValue = value; } } public string Value { get { return TextContent; } set { if (isDefaultValue) { _defaultValue = Value; isDefaultValue = false; } TextContent = value; } } public ISettableTokenList HtmlFor => _for ?? (_for = new SettableTokenList(this, AttributeNames.For)); public string Type => Tags.Output; internal HTMLOutputElement() : base(Tags.Output, NodeFlags.None) { isDefaultValue = true; } internal override void Reset() { if (!isDefaultValue) { TextContent = _defaultValue; isDefaultValue = true; } } } }