/// <summary> /// Reduce the set of matched elements /// </summary> public static IEnumerable <HElement> Filter(this HContainer element, Func <int, HElement, bool> selection) { if (element != null) { return(element.Descendants().Filter(selection)); } return(Enumerable.Empty <HElement>()); }
/// <summary> /// Get the descendants elements of the element with a selector /// </summary> public static IEnumerable <HElement> Find(this HContainer element, String selector) { if (element != null) { return(element.Descendants(selector)); } return(Enumerable.Empty <HElement>()); }
/// <summary> /// Remove elements from the set of elements /// </summary> public static IEnumerable <HElement> Not(this HContainer element, IEnumerable <HElement> selection) { if (element != null) { return(element.Descendants().Not(selection)); } return(Enumerable.Empty <HElement>()); }