Bug 254800

Summary: AX: Expand <details> <summary> disclosure element when it containes searched text
Product: WebKit Reporter: Florian Schroiff <florian>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: All   
OS: All   
URL: https://www.scottohara.me/blog/2022/09/12/details-summary.html#special-find-in-page-behavior
Attachments:
Description Flags
Screenshot of Safari only finding two instances of "heyo"
none
Screenshot of Safari only finding two instances of "heyo"
none
Screenshot of Chrome finding three instances of "heyo" none

Description Florian Schroiff 2023-03-31 00:13:06 PDT
Created attachment 465697 [details]
Screenshot of Safari only finding two instances of "heyo"

Text contained in a closed details element does not get found when using find-in-page in Safari. 

Please adopt the behavior of Chromium browsers where details elements expand when they contain searched text. The found matches count also reflects text hidden in closed details elements in Chromium. 


See: https://www.scottohara.me/blog/2022/09/12/details-summary.html#special-find-in-page-behavior (contains an interactive example!)
Comment 1 Florian Schroiff 2023-03-31 00:13:47 PDT
Created attachment 465698 [details]
Screenshot of Safari only finding two instances of "heyo"
Comment 2 Florian Schroiff 2023-03-31 00:14:29 PDT
Created attachment 465699 [details]
Screenshot of Chrome finding three instances of "heyo"
Comment 3 Radar WebKit Bug Importer 2023-04-07 00:14:16 PDT
<rdar://problem/107745231>