Fills a page's search text from that page alone
All 6 scenarios hold
Every page carries a search box, and that box searches the whole report. The report writes one index beside its pages, tabletest-search-index.js at the output root, and every page loads it. Type in the box and the navigation tree gives way to the pages that match. A page matches when its title or its text holds what you typed. The match ignores case, and it can start anywhere in a word.
The browser does the matching. The rules below therefore state what the index holds, and not what a query gives back.
A search finds a table page by everything a reader can see on it: its title, its description, its column headers and its cell values. A search finds an index page by its own title alone. A word that appears only in a rule below a feature therefore does not find the feature. It finds the rule, which is the page the reader wants.
These rows read a report of one class, Calendar rules. Its table is Leap year rules, described as "Gregorian leap year determination.". The columns of that table are Scenario, Year and Is leap year?. Its one row reads: A year divisible by four, 2004, Yes.
| Scenario | Page | Word | In its search text? |
|---|---|---|---|
| The table's own title | calendar-rules/leap-year-rules.html | Leap year rules | true |
| The table's description | calendar-rules/leap-year-rules.html | Gregorian leap year | true |
| A column header | calendar-rules/leap-year-rules.html | Is leap year? | true |
| A cell value | calendar-rules/leap-year-rules.html | 2004 | true |
| An index page's own title | calendar-rules/index.html | Calendar rules | true |
| A word from the table below it | calendar-rules/index.html | 2004 | false |