querySelectorAll method
Retrieves all Document Object Model (DOM) element nodes from descendants of the starting element node that match any selector within the supplied selector strings.
![]() |
Syntax
HRESULT retVal = object.querySelectorAll(v, pel);
Parameters
- v [in]
-
Type: BSTR
The selector string.
- pel [out, retval]
-
Type: IHTMLDOMChildrenCollection
A collection of DOM element nodes. The collection may be empty.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Standards information
- Selectors API Level 1, Section 6.1
Remarks
This method differs from the IElementSelector::querySelector method by returning a collection of DOM element nodes that match the selector string, rather than only the first element found.
See also
- Reference
- IElementSelector::querySelector
- IElementSelector
- Other Resources
- W3C Selectors API
- W3C Selectors
Build date: 11/12/2012
