Bug 210315

Summary: AX: SVG text node with content is described as "empty group" even if it's not empty
Product: WebKit Reporter: Dominik Moritz <domoritz>
Component: AccessibilityAssignee: Andres Gonzalez <andresg_22>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, andresg_22, apinheiro, cfleizach, darin, ddkilzer, dmazzoni, ews-watchlist, jcraig, jdiggs, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: Mac   
OS: macOS 10.15   
Bug Depends on:    
Bug Blocks: 212845    
Attachments:
Description Flags
HTML to demo the issue
none
Patch none

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