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 ).

Parent

searchPatterns

Type

Attribute.

Required

Yes.

Values

directive, tag+tagName, tag+*, comment, text

  • The directive value 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+tagName value 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 outerHTML node is searched. For INPUT tags, 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 comment value 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 text value 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.