Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 89c358fcab84650649e799788df5209013cfe935
https://github.com/WebKit/WebKit/commit/89c358fcab84650649e799788df5209013cfe935
Author: Wenson Hsieh <[email protected]>
Date: 2025-11-12 (Wed, 12 Nov 2025)
Changed paths:
M LayoutTests/fast/text-extraction/debug-text-extraction-basic-expected.txt
M LayoutTests/fast/text-extraction/debug-text-extraction-basic.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
M Source/WebKit/UIProcess/API/Cocoa/_WKTextExtractionInternal.h
M Source/WebKit/UIProcess/Cocoa/TextExtraction/WKTextExtractionUtilities.mm
M Tools/WebKitTestRunner/cocoa/WKTextExtractionTestingHelpers.mm
Log Message:
-----------
[AutoFill Debugging] Add support for superscript and subscript elements
https://bugs.webkit.org/show_bug.cgi?id=302422
rdar://164584999
Reviewed by Abrar Rahman Protyasha and Tim Horton.
Add support for `sub` and `sup` during text extraction, as separate container
types. This appears
in debug text extraction output like so (both the single-line and multi-line
cases):
```
'Hello world $11'
superscript,'99'
'Link to '
subscript
'WebKit home page:'
link,url='https://webkit.org/'
```
* LayoutTests/fast/text-extraction/debug-text-extraction-basic-expected.txt:
* LayoutTests/fast/text-extraction/debug-text-extraction-basic.html:
Augment an existing test to cover these new container types.
* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::extractItemData):
(WebCore::TextExtraction::shouldIncludeNodeIdentifier):
* Source/WebCore/page/text-extraction/TextExtractionTypes.h:
* Source/WebKit/Shared/TextExtractionToStringConversion.cpp:
(WebKit::addPartsForItem):
* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:
* Source/WebKit/UIProcess/API/Cocoa/_WKTextExtractionInternal.h:
* Source/WebKit/UIProcess/Cocoa/TextExtraction/WKTextExtractionUtilities.mm:
(WebKit::containerType):
* Tools/WebKitTestRunner/cocoa/WKTextExtractionTestingHelpers.mm:
(WTR::description):
Canonical link: https://commits.webkit.org/302944@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications