Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 21b75d735cc19a79566e747d746a7f7e783ab236
https://github.com/WebKit/WebKit/commit/21b75d735cc19a79566e747d746a7f7e783ab236
Author: Tyler Wilcock <[email protected]>
Date: 2026-09-22 (Tue, 22 Sep 2026)
Changed paths:
A
LayoutTests/accessibility/isolated-tree/mac/string-for-range-with-ignored-image-expected.txt
A
LayoutTests/accessibility/isolated-tree/mac/string-for-range-with-ignored-image.html
A
LayoutTests/accessibility/mac/string-for-range-with-ignored-image-expected.txt
A LayoutTests/accessibility/mac/string-for-range-with-ignored-image.html
M Source/WebCore/accessibility/AXTextMarker.cpp
Log Message:
-----------
AX: In isolated tree mode, an ignored replaced element contributes a
character to the string for a range
https://bugs.webkit.org/show_bug.cgi?id=324639
rdar://187887711
Reviewed by Chris Fleizach.
An ignored replaced element, an <img alt=""> say, added an object replacement
character to the
string for a text marker range spanning it. The main thread emits nothing for
one, as does
auxiliaryTextForObject, which has a comment mentioning that unignored replaced
elements
contribute one U+FFFC, and ignored ones contribute nothing.
The element's text run holds that character regardless, so a text marker can
address the element.
forEachTextPiece emitted every run's text verbatim and so leaked it. Skip the
run text of an ignored
replaced element, leaving the run itself alone.
*
LayoutTests/accessibility/isolated-tree/mac/string-for-range-with-ignored-image-expected.txt:
Added.
*
LayoutTests/accessibility/isolated-tree/mac/string-for-range-with-ignored-image.html:
Added.
*
LayoutTests/accessibility/mac/string-for-range-with-ignored-image-expected.txt:
Added.
* LayoutTests/accessibility/mac/string-for-range-with-ignored-image.html: Added.
* Source/WebCore/accessibility/AXTextMarker.cpp:
(WebCore::AXTextMarkerRange::forEachTextPiece const):
Canonical link: https://commits.webkit.org/321660@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications