AngleSharp by Florian Rappl

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

.NET API 1,175,040 bytes

 HtmlSourceElement

Represents the HTML source element.
using AngleSharp.Dom.Css; using AngleSharp.Html; namespace AngleSharp.Dom.Html { internal sealed class HtmlSourceElement : HtmlElement, IHtmlSourceElement, IHtmlElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IElementCssInlineStyle { private readonly BoundLocation _src; public string Source { get { return _src.Href; } set { _src.Href = value; } } public string Media { get { return GetOwnAttribute(AttributeNames.Media); } set { SetOwnAttribute(AttributeNames.Media, value); } } public string Type { get { return GetOwnAttribute(AttributeNames.Type); } set { SetOwnAttribute(AttributeNames.Type, value); } } public string SourceSet { get { return GetOwnAttribute(AttributeNames.SrcSet); } set { SetOwnAttribute(AttributeNames.SrcSet, value); } } public string Sizes { get { return GetOwnAttribute(AttributeNames.Sizes); } set { SetOwnAttribute(AttributeNames.Sizes, value); } } public HtmlSourceElement(Document owner, string prefix = null) : base(owner, Tags.Source, prefix, NodeFlags.SelfClosing | NodeFlags.Special) { _src = new BoundLocation(this, AttributeNames.Src); } } }