Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a8d606d89f8c317b62922b10ae5069c3161b059e
      
https://github.com/WebKit/WebKit/commit/a8d606d89f8c317b62922b10ae5069c3161b059e
  Author: Wenson Hsieh <[email protected]>
  Date:   2026-08-10 (Mon, 10 Aug 2026)

  Changed paths:
    M 
LayoutTests/fast/text-extraction/debug-text-extraction-interactions-expected.txt
    M LayoutTests/fast/text-extraction/debug-text-extraction-interactions.html
    M Source/WebCore/page/text-extraction/TextExtraction.cpp

  Log Message:
  -----------
  [Text Extraction] Interactions should not fail when specifying `text` that 
matches part of the target's value or alt text
https://bugs.webkit.org/show_bug.cgi?id=321448
rdar://184542490

Reviewed by Abrar Rahman Protyasha and Aditya Keerthi.

Allow text search to "succeed" in a given target element, as long as the text 
matches part of the
target's value, alt text, or placeholder.

* 
LayoutTests/fast/text-extraction/debug-text-extraction-interactions-expected.txt:
* LayoutTests/fast/text-extraction/debug-text-extraction-interactions.html:
* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::alternativeTextForFallbackTextSearch):
(WebCore::TextExtraction::searchTextMatchesElementLabelOrRenderedText):

Canonical link: https://commits.webkit.org/318938@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to