W3CWeb Accessibility Initiative Home

Rendered Text Search Capabilities

On this page: Test 1 | References | About these tests

Nearby: More HTML 4.01 Tests | UAAG 1.0 Test Suite

UAAG 1.0 Requirement

Checkpoint 9.8 Provide text search (Priority 2 )
Provision 1 : Allow the user to search within rendered text content for a sequence of characters from the document character set.
Provision 2 : Allow the user to start a forward search (in document order) from any selected or focused location in content.
Provision 3 : When there is a match, do both of the following: move the viewport so that the matched text content is at least partially within it, and allow the user to search for the next instance of the text from the location of the match.
Provision 4 : Alert the user when there is no match or after the last match in content (i.e., prior to starting the search over from the beginning of content).

Test 1 :

Procedure

  1. Search the rendered test text for all four instances of the character string "yyyyy".
  2. Highlight the heading "Test highlight heading" and search for the next instance of the character string "yyyyy".
  3. Search the rendered test text for the character string "zzzzz".

Run test

Beginning of test rendered text

Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx yyyyy xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx.

Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx yyyyy xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx.

Test highlight heading

Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx yyyyy xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx.

Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx yyyyy xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx.

End of test rendered text

Expected results

  1. The user can locate all four instances of the character string "yyyyy".
  2. When the user highlights the test heading "Test highlight heading", the user can locate the next instance of the character string "yyyyy', which is the third instance of "yyyyy" in the test rendered text.
  3. When there is a match, the user agent moves the viewport so that the character string "yyyyy" is within the viewport.
  4. When there is a match, the user agent allows the user to search for the next instance of "yyyyy" from the location of the match.
  5. When the user searches for the character string "zzzzz", the user agent should alert the user there is no match.
  6. After locating all four instances of the string "yyyyy" in the test rendered text, the user agent should alert the user when the search reaches the end of the test rendered text.
  7. After locating all four instances of the string "yyyyy" in the test rendered text, the user agent should alert the user prior to any wrapping. A wrapping search is one that restarts automatically at the beginning of content once the end of content has been reached.

Source code

<div>
  <h3>Beginning of test rendered text</h3>
  <p>Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx yyyyy xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx.</p>
  <p>Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx yyyyy xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx.</p>
  <h3>Test highlight heading</h3>
  <p>Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx yyyyy xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx.</p>
  <p>Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx yyyyy xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx. Xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx.</p>
  <h3>End of test rendered text</h3>
</div>

References

  1. specification for

About this test suite

This test is part of a test suite for the User Agent Accessibility Guidelines (UAAG) 1.0 . This work is conducted by the User Agent Accessibility Guidelines Working Group , which is part of W3C's Web Accessibility Initiative (WAI) . Please send comments on this test to w3c-wai-ua@w3.org ( public archive ).


Test created by:

Last modified: $Date: 2003/04/02 23:46:49 $ by $Author: jongund $