Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Implements the W3C Selectors API. The W3C Selectors API supports searching for one or more elements that match a given CSS Selector string.
Members
The IElementSelector interface inherits from the IDispatch interface. IElementSelector also has these types of members:
- Methods
Methods
The IElementSelector interface has these methods.
| Method | Description |
|---|---|
| querySelector | Retrieves the first DOM element node from descendants of the starting element node that match any selector within the supplied selector string. |
| querySelectorAll | Retrieves all DOM element nodes from descendants of the starting element node that match any selector within the supplied selector strings. |
Remarks
Note The W3C Selectors API will function only in IE8 Standards mode.
This API is faster than the equivalent script methods.
Requirements
Minimum supported client |
Windows XP with SP2 |
Minimum supported server |
Windows Server 2003 |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |
See also
Reference
Conceptual
Selecting Objects with JavaScript
Other Resources