AngleSharp by Florian Rappl

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

.NET API 1,171,968 bytes

 HtmlTrackElement

Represents the HTML track element.
using AngleSharp.Dom.Css; using AngleSharp.Dom.Media; using AngleSharp.Html; namespace AngleSharp.Dom.Html { internal sealed class HtmlTrackElement : HtmlElement, IHtmlTrackElement, IHtmlElement, IElement, INode, IEventTarget, IParentNode, IChildNode, INonDocumentTypeChildNode, IElementCssInlineStyle { public enum TrackKind : ushort { Subtitles, Captions, Descriptions, Chapters, Metadata } private TrackReadyState _ready; public string Kind { get { return GetAttribute(AttributeNames.Kind); } set { SetAttribute(AttributeNames.Kind, value); } } public string Source { get { return GetAttribute(AttributeNames.Src); } set { SetAttribute(AttributeNames.Src, value); } } public string SourceLanguage { get { return GetAttribute(AttributeNames.SrcLang); } set { SetAttribute(AttributeNames.SrcLang, value); } } public string Label { get { return GetAttribute(AttributeNames.Label); } set { SetAttribute(AttributeNames.Label, value); } } public bool IsDefault { get { return GetAttribute(AttributeNames.Default) != null; } set { SetAttribute(AttributeNames.Default, value ? string.Empty : null); } } public TrackReadyState ReadyState => _ready; public ITextTrack Track => null; public HtmlTrackElement(Document owner) : base(owner, Tags.Track, NodeFlags.SelfClosing | NodeFlags.Special) { _ready = TrackReadyState.None; } } }