public HtmlCollection Clone(bool deep = true) { var collection = new HtmlCollection(); foreach (var element in this) { collection.Add(element.Clone(deep) as IElement); } return(collection); }
public HtmlCollection QuerySelectorAll(string selector) { if (string.IsNullOrWhiteSpace(selector)) { return(this); } var collection = new HtmlCollection(); collection.AddRange(_querySelectorAll(selector)); return(collection); }