HtmlSourceElement
sealed class HtmlSourceElement : HtmlElement, IHtmlSourceElement, IHtmlElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IElementCssInlineStyle
Represents the HTML source element.
using AngleSharp.Dom.Css;
using AngleSharp.Extensions;
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 this.GetUrlAttribute(AttributeNames.Src);
}
set {
this.SetOwnAttribute(AttributeNames.Src, value);
}
}
public string Media {
get {
return this.GetOwnAttribute(AttributeNames.Media);
}
set {
this.SetOwnAttribute(AttributeNames.Media, value);
}
}
public string Type {
get {
return this.GetOwnAttribute(AttributeNames.Type);
}
set {
this.SetOwnAttribute(AttributeNames.Type, value);
}
}
public string SourceSet {
get {
return this.GetOwnAttribute(AttributeNames.SrcSet);
}
set {
this.SetOwnAttribute(AttributeNames.SrcSet, value);
}
}
public string Sizes {
get {
return this.GetOwnAttribute(AttributeNames.Sizes);
}
set {
this.SetOwnAttribute(AttributeNames.Sizes, value);
}
}
public HtmlSourceElement(Document owner, string prefix = null)
: base(owner, TagNames.Source, prefix, NodeFlags.SelfClosing | NodeFlags.Special)
{
}
}
}