AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="1.4.0-beta.497" />

.NET API 964,096 bytes

 HtmlSourceElement

Represents the HTML source element.
using AngleSharp.Dom; using AngleSharp.Dom.Events; using System.Runtime.CompilerServices; namespace AngleSharp.Html.Dom { [System.Runtime.CompilerServices.NullableContext(2)] [System.Runtime.CompilerServices.Nullable(0)] internal sealed class HtmlSourceElement : HtmlElement, IHtmlSourceElement, IHtmlElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IGlobalEventHandlers { public string Source { get { return this.GetUrlAttribute(AttributeNames.Src); } set { this.SetOwnAttribute(AttributeNames.Src, value, false); } } public string Media { get { return this.GetOwnAttribute(AttributeNames.Media); } set { this.SetOwnAttribute(AttributeNames.Media, value, false); } } public string Type { get { return this.GetOwnAttribute(AttributeNames.Type); } set { this.SetOwnAttribute(AttributeNames.Type, value, false); } } public string SourceSet { get { return this.GetOwnAttribute(AttributeNames.SrcSet); } set { this.SetOwnAttribute(AttributeNames.SrcSet, value, false); } } public string Sizes { get { return this.GetOwnAttribute(AttributeNames.Sizes); } set { this.SetOwnAttribute(AttributeNames.Sizes, value, false); } } [System.Runtime.CompilerServices.NullableContext(1)] public HtmlSourceElement(Document owner, [System.Runtime.CompilerServices.Nullable(2)] string prefix = null) : base(owner, TagNames.Source, prefix, NodeFlags.SelfClosing | NodeFlags.Special) { } } }