Пример #1
0
 public HTMLMediaElement(Document owner, String name)
     : base(owner, name)
 {
     _src     = new BoundLocation(this, AttributeNames.Src);
     _network = MediaNetworkState.Empty;
     RegisterAttributeObserver(AttributeNames.Src, value => Load());
 }
Пример #2
0
 public HtmlObjectElement(Document owner)
     : base(owner, Tags.Object, NodeFlags.Scoped)
 {
     _data            = new BoundLocation(this, AttributeNames.Data);
     _contentDocument = null;
     _contentWindow   = null;
     RegisterAttributeObserver(AttributeNames.Data, UpdateSource);
 }
Пример #3
0
 /// <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);
 }
Пример #4
0
 /// <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);
 }
Пример #5
0
 /// <summary>
 /// Creates a new HTML video element.
 /// </summary>
 public HtmlVideoElement(Document owner)
     : base(owner, Tags.Video)
 {
     _poster = new BoundLocation(this, AttributeNames.Poster);
     _videos = null;
 }
Пример #6
0
 /// <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);
 }
Пример #7
0
 /// <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);
 }
Пример #8
0
 /// <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);
 }
Пример #9
0
 /// <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;
 }
Пример #10
0
 /// <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);
 }
Пример #11
0
 /// <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;
 }
Пример #12
0
 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);
 }
Пример #14
0
 /// <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);
 }
Пример #15
0
 /// <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);
 }
Пример #16
0
 /// <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);
 }
Пример #17
0
 public HtmlObjectElement(Document owner, String prefix = null)
     : base(owner, Tags.Object, prefix, NodeFlags.Scoped)
 {
     _data = new BoundLocation(this, AttributeNames.Data);
     RegisterAttributeObserver(AttributeNames.Data, UpdateSource);
 }
Пример #18
0
 /// <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);
 }