whereToSearch
Description
This attribute specifies where to search for the participant text. This attribute is related to the insert location, so be sure to set each attribute carefully (see location).
Parent
searchPatterns
Type
Attribute.
Required
Yes.
Values
directive, tag+tagName, tag+*, comment, text
- The
directivevalue searches all server directives (server-specific tags). For ASP and JSP, this means search all<% ... %>script blocks.NOTE
Tag attributes are not searched, even if they contain directives.
- The
tag+tagNamevalue searches the contents of a specified tag, as shown in the following example:<searchPatterns whereToSearch="tag+FORM">
This example searches only form tags. By default, the entire
outerHTMLnode is searched. ForINPUTtags, specify the type after a slash (/). In the following example, to search all submit buttons, use the following code:<searchPatterns whereToSearch="tag+INPUT/SUBMIT">. - The
tag+*value searches the contents of any tag, as shown in the following example:<searchPatterns whereToSearch="tag+*">
This example searches all tags.
- The
commentvalue searches only within the HTML comments<! ... >, as shown in the following example:<searchPatterns whereToSearch="comment">
This example searches tags such as
<!-- my comment here -->. - The
textvalue searches only within raw text sections, as shown in the following example:<searchPatterns whereToSearch="text"> <searchPattern>XYZ</searchPattern></searchPatterns>
This example finds a text node that contains the text
XYZ.