Bug 210315 - AX: SVG text node with content is described as "empty group" even if it's not empty
Summary: AX: SVG text node with content is described as "empty group" even if it's not...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Safari 13
Hardware: Mac macOS 10.15
: P2 Normal
Assignee: Andres Gonzalez
URL:
Keywords: InRadar
Depends on:
Blocks: 212845
  Show dependency treegraph
 
Reported: 2020-04-09 19:35 PDT by Dominik Moritz
Modified: 2020-06-05 12:40 PDT (History)
12 users (show)

See Also:


Attachments
HTML to demo the issue (75 bytes, text/html)
2020-04-09 19:35 PDT, Dominik Moritz
no flags Details
Patch (7.69 KB, patch)
2020-06-03 09:57 PDT, Andres Gonzalez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Moritz 2020-04-09 19:35:24 PDT
Created attachment 396034 [details]
HTML to demo the issue

If you create an SVG text element that has some text in it and navigate over it with VoiceOver, then VO reads it as "the text, empty group". 

For example, take the page below. VO reads "Hello Webkit, empty group". I would expect VO not to say "empty group" since the group is not empty and contains text that is not hidden (VO reads the text). 


<p<>
    Webkit Bug demo:
</p>

<svg>
    <text>Hello Webkit</text>
</svg>
Comment 1 Radar WebKit Bug Importer 2020-04-09 19:35:32 PDT
<rdar://problem/61558282>
Comment 2 Andres Gonzalez 2020-06-03 09:57:43 PDT
Created attachment 400936 [details]
Patch
Comment 3 EWS 2020-06-03 12:07:43 PDT
Committed r262500: <https://trac.webkit.org/changeset/262500>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 400936 [details].
Comment 4 David Kilzer (:ddkilzer) 2020-06-05 12:40:56 PDT
(In reply to EWS from comment #3)
> Committed r262500: <https://trac.webkit.org/changeset/262500>
> 
> All reviewed patches have been landed. Closing bug and clearing flags on
> attachment 400936 [details].

This caused:

    Bug 212845: [Win EWS] REGRESSION (r262500): accessibility/svg-text.html always fails
    rdar://problem/64040462