public IHtmlCollection <IElement> GetElementsByTagNameNS(string namespaceUri, string tagName) { var list = new List <IElement>(); ChildNodes.GetElementsByTagName(namespaceUri, tagName.Is("*") ? null : tagName, list); return(CreateCollection(list)); }
/// <summary> /// Returns a list of elements with the given tag name belonging to the /// given namespace. The complete document is searched, including the /// root node. /// </summary> /// <param name="namespaceURI"> /// The namespace URI of elements to look for. /// </param> /// <param name="tagName"> /// Either the local name of elements to look for or the special value /// "*", which matches all elements. /// </param> /// <returns> /// A NodeList of found elements in the order they appear in the tree. /// </returns> public IHtmlCollection <IElement> GetElementsByTagNameNS(String namespaceURI, String tagName) { return(ChildNodes.GetElementsByTagName(namespaceURI, tagName)); }
/// <summary> /// Returns a NodeList of elements with the given tag name. The /// complete document is searched, including the root node. /// </summary> /// <param name="tagName"> /// A string representing the name of the elements. The special string /// "*" represents all elements. /// </param> /// <returns> /// A NodeList of found elements in the order they appear in the tree. /// </returns> public IHtmlCollection <IElement> GetElementsByTagName(String tagName) { return(ChildNodes.GetElementsByTagName(tagName)); }
public IHtmlCollection <IElement> GetElementsByTagNameNS(String?namespaceURI, String tagName) => ChildNodes.GetElementsByTagName(namespaceURI, tagName);
public IHtmlCollection <IElement> GetElementsByTagName(String tagName) => ChildNodes.GetElementsByTagName(tagName);