/// <summary> /// Starts a new selection for the provided set of nodes /// </summary> public CssSelector(string selector, HtmlNode start) : this(selector, new HtmlNode[] { start }) { }
/// <summary> /// Prepends a node to this node /// </summary> public void Prepend(HtmlNode node) { this.Prepend(new HtmlNode[] { node }); }
/// <summary> /// Appends a node to this node /// </summary> public void Append(HtmlNode node) { this.Append(new HtmlNode[] { node }); }
/// <summary> /// Moves a node before the target node /// </summary> public void InsertBefore(HtmlNode target) { if (target == null) { return; } this.Detatch(); target.Parent._Container.InsertBefore( this._Container, target._Container ); }
/// <summary> /// Append an additional node to this context /// </summary> public void AddNodes(HtmlNode node) { this.AddNodes(new HtmlNode[] { node }); }