Export (0) Print
Expand All

IElementSelector interface

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

The IElementSelector interface has these methods.

MethodDescription
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 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

Reference
IDocumentSelector
Conceptual
Selecting Objects with JavaScript
Other Resources
W3C Selectors API
W3C Selectors

 

 

Community Additions

ADD
Show:
© 2014 Microsoft