/// <summary> /// Returns a set of elements with the given class name. When called on the document object, the complete document is searched, including the root node. /// </summary> /// <param name="classes"></param> /// <returns></returns> public GeckoNodeCollection GetElementsByClassName(string classes) { nsIDOMNodeList list = nsString.Pass <nsIDOMNodeList>(_domDocument.GetElementsByClassName, classes); return(GeckoNodeCollection.Create(list)); }
/// <summary> /// Returns a set of elements with the given class name. When called on the document object, the complete document is searched, including the root node. /// </summary> /// <param name="classes"></param> /// <returns></returns> public GeckoNodeCollection GetElementsByClassName(string classes) { var list = (nsIDOMNodeList)Doc.Value.GetElementsByClassName(classes); return(GeckoNodeCollection.Create(Window, (nsISupports)list)); }