Retrieves a string that identifies which elements the corresponding style sheet rule applies to.
HRESULT IHTMLStyleSheetRule2::get_selectorText(BSTR *p);HRESULT IHTMLStyleSheetRule2::put_selectorText(BSTR v);
- Pointer to a variable of type BSTR that receives the element.
- BSTR that specifies the element.
Returns S_OK if successful, or an error value otherwise.
Selector text can contain either a simple selector (such as 'H1'), or a contextual selector (such as 'P EM') that consists of several simple selectors. Compound selectors (such as 'B, STRONG') are stored as separate rules in the collection.