HTMLMenuElement
Represents the HTML menu element.
namespace AngleSharp.DOM.Html
{
[DOM("HTMLMenuElement")]
public sealed class HTMLMenuElement : HTMLElement
{
public enum MenuType : ushort
{
Popup,
Toolbar
}
[DOM("type")]
public MenuType Type {
get {
return Element.ToEnum(GetAttribute(AttributeNames.Type), MenuType.Popup);
}
set {
SetAttribute(AttributeNames.Type, value.ToString());
}
}
[DOM("label")]
public string Label {
get {
return GetAttribute(AttributeNames.Label);
}
set {
SetAttribute(AttributeNames.Label, value);
}
}
protected internal override bool IsSpecial => true;
internal HTMLMenuElement()
{
_name = "menu";
}
}
}