HTMLSelectElement
Represents the select element.
namespace AngleSharp.DOM.Html
{
public sealed class HTMLSelectElement : HTMLElement
{
internal const string Tag = "select";
public string Name {
get {
return GetAttribute("name");
}
set {
SetAttribute("name", value);
}
}
public bool Disabled {
get {
return GetAttribute("disabled") != null;
}
set {
SetAttribute("disabled", value ? string.Empty : null);
}
}
public bool Required {
get {
return GetAttribute("required") != null;
}
set {
SetAttribute("required", value ? string.Empty : null);
}
}
protected internal override bool IsSpecial => true;
internal HTMLSelectElement()
{
_name = "select";
}
}
}