HtmlFrameElementBase
Represents the base class for frame elements.
using AngleSharp.Html;
namespace AngleSharp.Dom.Html
{
internal abstract class HtmlFrameElementBase : HtmlFrameOwnerElement
{
private readonly BoundLocation _src;
public string Name {
get {
return GetOwnAttribute(AttributeNames.Name);
}
set {
SetOwnAttribute(AttributeNames.Name, value);
}
}
public string Source {
get {
return _src.Href;
}
set {
_src.Href = value;
}
}
public string Scrolling {
get {
return GetOwnAttribute(AttributeNames.Scrolling);
}
set {
SetOwnAttribute(AttributeNames.Scrolling, value);
}
}
public IDocument ContentDocument { get; set; }
public string LongDesc {
get {
return GetOwnAttribute(AttributeNames.LongDesc);
}
set {
SetOwnAttribute(AttributeNames.LongDesc, value);
}
}
public string FrameBorder {
get {
return GetOwnAttribute(AttributeNames.FrameBorder);
}
set {
SetOwnAttribute(AttributeNames.FrameBorder, value);
}
}
public HtmlFrameElementBase(Document owner, string name, string prefix, NodeFlags flags = NodeFlags.None)
: base(owner, name, prefix, flags | NodeFlags.Special)
{
_src = new BoundLocation(this, AttributeNames.Src);
}
}
}