Exemple #1
0
        public HtmlCollection Clone(bool deep = true)
        {
            var collection = new HtmlCollection();

            foreach (var element in this)
            {
                collection.Add(element.Clone(deep) as IElement);
            }
            return(collection);
        }
Exemple #2
0
        public HtmlCollection QuerySelectorAll(string selector)
        {
            if (string.IsNullOrWhiteSpace(selector))
            {
                return(this);
            }
            var collection = new HtmlCollection();

            collection.AddRange(_querySelectorAll(selector));
            return(collection);
        }