public HTMLMediaElement(Document owner, String name) : base(owner, name) { _src = new BoundLocation(this, AttributeNames.Src); _network = MediaNetworkState.Empty; RegisterAttributeObserver(AttributeNames.Src, value => Load()); }
public HtmlObjectElement(Document owner) : base(owner, Tags.Object, NodeFlags.Scoped) { _data = new BoundLocation(this, AttributeNames.Data); _contentDocument = null; _contentWindow = null; RegisterAttributeObserver(AttributeNames.Data, UpdateSource); }
/// <summary> /// Creates a new anchor element. /// </summary> public HtmlAnchorElement(Document owner, String prefix = null) : base(owner, Tags.A, prefix, NodeFlags.HtmlFormatting) { _location = new BoundLocation(this, AttributeNames.Href); }
/// <summary> /// Creates a new image element. /// </summary> public HtmlImageElement(Document owner, String prefix = null) : base(owner, Tags.Img, prefix, NodeFlags.Special | NodeFlags.SelfClosing) { _src = new BoundLocation(this, AttributeNames.Src); RegisterAttributeObserver(AttributeNames.Src, UpdateSource); }
/// <summary> /// Creates a new HTML video element. /// </summary> public HtmlVideoElement(Document owner) : base(owner, Tags.Video) { _poster = new BoundLocation(this, AttributeNames.Poster); _videos = null; }
/// <summary> /// Creates a new anchor element. /// </summary> public HtmlAnchorElement(Document owner) : base(owner, Tags.A, NodeFlags.HtmlFormatting) { _location = new BoundLocation(this, AttributeNames.Href); RegisterAttributeObserver(AttributeNames.Rel, UpdateRelList); }
/// <summary> /// Creates a new area element. /// </summary> public HtmlAreaElement(Document owner, String prefix = null) : base(owner, Tags.Area, prefix, NodeFlags.Special | NodeFlags.SelfClosing) { _location = new BoundLocation(this, AttributeNames.Href); }
/// <summary> /// Creates a new HTML track element. /// </summary> public HtmlTrackElement(Document owner) : base(owner, Tags.Track, NodeFlags.Special | NodeFlags.SelfClosing) { _src = new BoundLocation(this, AttributeNames.Src); _ready = TrackReadyState.None; }
/// <summary> /// Creates a new HTML source element. /// </summary> public HtmlSourceElement(Document owner, String prefix = null) : base(owner, Tags.Source, prefix, NodeFlags.Special | NodeFlags.SelfClosing) { _src = new BoundLocation(this, AttributeNames.Src); }
/// <summary> /// Creates a new HTML track element. /// </summary> public HtmlTrackElement(Document owner, String prefix = null) : base(owner, Tags.Track, prefix, NodeFlags.Special | NodeFlags.SelfClosing) { _src = new BoundLocation(this, AttributeNames.Src); _ready = TrackReadyState.None; }
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); }
public HtmlObjectElement(Document owner, String prefix = null) : base(owner, Tags.Object, prefix, NodeFlags.Scoped) { _data = new BoundLocation(this, AttributeNames.Data); RegisterAttributeObserver(AttributeNames.Data, UpdateSource); }
/// <summary> /// Creates a new area element. /// </summary> public HtmlAreaElement(Document owner) : base(owner, Tags.Area, NodeFlags.Special | NodeFlags.SelfClosing) { _location = new BoundLocation(this, AttributeNames.Href); RegisterAttributeObserver(AttributeNames.Rel, UpdateRelList); }