You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ui.search only matches the document body: text in headers, footers and footnotes is never found #4121
superdoc.ui.search.find() (the find/replace surface) returns matches from the body story only. Text that is painted on the page in a header, footer or footnote is never matched, so the find bar reports 0 results for words the reader can see.
Expected: matches in every visible story, as the reader sees them on the page, or at least an option to include headers, footers and notes.
Actual: only body matches are counted and navigated. SearchQueryOptions has caseSensitive, includeTrackedDeletions and regex, and no option for story scope.
Steps to reproduce
Open the attached search-stories-repro.docx. It is one page of synthetic text. Each story holds a marker word that appears nowhere else:
body: alphabody
header: bravoheader
footer: charliefooter
footnote: deltafootnote
sharedmarker appears once in the body and once in the header
Run superdoc.ui.search.find(word) for each word and read getSnapshot().total once it settles.
Query
Where it is
total
alphabody
body
1
sharedmarker
body + header
1
bravoheader
header
0
charliefooter
footer
0
deltafootnote
footnote
0
All four marker words are present in the painted page's DOM.
Activity