HtmlOptionsGroupElement
sealed class HtmlOptionsGroupElement : HtmlElement, IHtmlOptionsGroupElement, IHtmlElement, IElement, INode, IEventTarget, IParentNode, IChildNode, INonDocumentTypeChildNode, IElementCssInlineStyle
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, IParentNode, IChildNode, INonDocumentTypeChildNode, IElementCssInlineStyle
{
public string Label {
get {
return GetAttribute(AttributeNames.Label);
}
set {
SetAttribute(AttributeNames.Label, value);
}
}
public bool IsDisabled {
get {
return GetAttribute(AttributeNames.Disabled) != null;
}
set {
SetAttribute(AttributeNames.Disabled, value ? string.Empty : null);
}
}
public HtmlOptionsGroupElement(Document owner)
: base(owner, Tags.Optgroup, NodeFlags.ImplicitelyClosed | NodeFlags.ImpliedEnd | NodeFlags.HtmlSelectScoped)
{
}
}
}