QueryExtensions
Extensions for performing QuerySelector operations.
Returns true if the underlying string contains all of the tokens, otherwise false.
public static HtmlElementCollection GetElementsByClassName(this INodeList elements, string classNames)
Returns a set of elements which have all the given class names.
public static void GetElementsByClassName(this INodeList elements, string[] classNames, List<IElement> result)
Returns a set of elements which have all the given class names.
Returns a NodeList of elements with the given tag name. The complete document is searched, including the root node.
public static void GetElementsByTagName(this INodeList elements, string tagName, List<IElement> result)
Returns a NodeList of elements with the given tag name. The complete document is searched, including the root node.
public static HtmlElementCollection GetElementsByTagNameNS(this INodeList elements, string namespaceUri, string localName)
Returns a list of elements with the given tag name belonging to the given namespace.
The complete document is searched, including the root node.
public static void GetElementsByTagNameNS(this INodeList elements, string namespaceUri, string localName, List<IElement> result)
Returns a list of elements with the given tag name belonging to the given namespace.
The complete document is searched, including the root node.
Returns the first element within the document (using depth-first pre-order traversal
of the document's nodes) that matches the specified group of selectors.
Returns the first element within the document (using depth-first pre-order traversal
of the document's nodes) that matches the given selector.
Returns the first element within the document (using depth-first pre-order traversal
of the document's nodes) that matches the specified group of selectors.
Returns a list of the elements within the document (using depth-first pre-order traversal
of the document's nodes) that match the specified group of selectors.
Returns a list of the elements within the document (using depth-first pre-order traversal
of the document's nodes) that matches the selector.
public static void QuerySelectorAll(this INodeList elements, ISelector selector, List<IElement> result)
Returns a list of the elements within the document (using depth-first pre-order traversal
of the document's nodes) that match the specified group of selectors.