AngleSharp by AngleSharp

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

.NET API 1,213,440 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 { public string Source { get { return GetUrlAttribute(AttributeNames.Src); } set { SetOwnAttribute(AttributeNames.Src, 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) { } } }