AngleSharp by Florian Rappl

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

.NET API 1,175,040 bytes

 HtmlOptionsGroupElement

Represents the HTML optgroup element.
using AngleSharp.Dom.Css; using AngleSharp.Html; namespace AngleSharp.Dom.Html { internal sealed class HtmlOptionsGroupElement : HtmlElement, IHtmlOptionsGroupElement, IHtmlElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IElementCssInlineStyle { public string Label { get { return GetOwnAttribute(AttributeNames.Label); } set { SetOwnAttribute(AttributeNames.Label, value); } } public bool IsDisabled { get { return GetOwnAttribute(AttributeNames.Disabled) != null; } set { SetOwnAttribute(AttributeNames.Disabled, value ? string.Empty : null); } } public HtmlOptionsGroupElement(Document owner, string prefix = null) : base(owner, Tags.Optgroup, prefix, NodeFlags.ImplicitelyClosed | NodeFlags.ImpliedEnd | NodeFlags.HtmlSelectScoped) { } } }