Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: edc7e77a2687660864223656c612565300fb13d0
https://github.com/WebKit/WebKit/commit/edc7e77a2687660864223656c612565300fb13d0
Author: Wenson Hsieh <[email protected]>
Date: 2026-02-28 (Sat, 28 Feb 2026)
Changed paths:
M
LayoutTests/fast/text-extraction/debug-text-extraction-markdown-expected.txt
M LayoutTests/fast/text-extraction/debug-text-extraction-markdown.html
M Source/WebCore/page/text-extraction/TextExtraction.cpp
M Source/WebCore/page/text-extraction/TextExtractionTypes.h
M Source/WebKit/Shared/TextExtractionToStringConversion.cpp
M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
Log Message:
-----------
[AutoFill Debugging] Surface text with `text-decoration: line-through;` as
~~strikethrough text~~ when producing markdown
https://bugs.webkit.org/show_bug.cgi?id=308863
rdar://171355896
Reviewed by Tim Horton and Abrar Rahman Protyasha.
Add plumbing to handle text with `text-decoration: line-through;` in the same
way as text underneath
`del` and `s` elements, by surrounding the text with `~~`.
* LayoutTests/fast/text-extraction/debug-text-extraction-markdown-expected.txt:
* LayoutTests/fast/text-extraction/debug-text-extraction-markdown.html:
Add several more test cases to the markdown output format.
* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::canMerge):
(WebCore::TextExtraction::extractRecursive):
* Source/WebCore/page/text-extraction/TextExtractionTypes.h:
Add `hasLineThrough` on each item to track whether or not the element has a
`line-through` style.
* Source/WebKit/Shared/TextExtractionToStringConversion.cpp:
(WebKit::addPartsForText):
(WebKit::addPartsForItem):
(WebKit::addTextRepresentationRecursive):
* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:
Canonical link: https://commits.webkit.org/308413@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications