Bug 231756 - AX: role="math" elements are no longer considered to have presentational children
Summary: AX: role="math" elements are no longer considered to have presentational chil...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-14 12:12 PDT by Tyler Wilcock
Modified: 2021-10-15 08:13 PDT (History)
11 users (show)

See Also:


Attachments
Patch (6.56 KB, patch)
2021-10-14 12:18 PDT, Tyler Wilcock
no flags Details | Formatted Diff | Diff
Patch (6.69 KB, patch)
2021-10-14 12:52 PDT, Tyler Wilcock
no flags Details | Formatted Diff | Diff
Patch (6.72 KB, patch)
2021-10-14 12:54 PDT, Tyler Wilcock
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tyler Wilcock 2021-10-14 12:12:00 PDT
In WAI-ARIA 1.1 (https://www.w3.org/TR/wai-aria-1.1/#math-0), role="math" elements were considered to have presentational children. This changed in WAI-ARIA 1.2 (https://www.w3.org/TR/wai-aria-1.2/#math).
Comment 1 Radar WebKit Bug Importer 2021-10-14 12:12:12 PDT
<rdar://problem/84268174>
Comment 2 Tyler Wilcock 2021-10-14 12:18:29 PDT
Created attachment 441252 [details]
Patch
Comment 3 Darin Adler 2021-10-14 12:34:39 PDT
Comment on attachment 441252 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=441252&action=review

> Source/WebCore/accessibility/AccessibilityNodeObject.cpp:401
>  #if ENABLE(MATHML)
> -        return node()->isMathMLElement();
> +        return true;
>  #endif
>          return false;

Seems like this should use #else.

But also, is it really important to return false for this when building without MathML support?
Comment 4 Tyler Wilcock 2021-10-14 12:52:41 PDT
Created attachment 441261 [details]
Patch
Comment 5 Tyler Wilcock 2021-10-14 12:54:04 PDT
Created attachment 441263 [details]
Patch
Comment 6 Tyler Wilcock 2021-10-14 12:54:31 PDT
(In reply to Darin Adler from comment #3)
> Comment on attachment 441252 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=441252&action=review
> 
> > Source/WebCore/accessibility/AccessibilityNodeObject.cpp:401
> >  #if ENABLE(MATHML)
> > -        return node()->isMathMLElement();
> > +        return true;
> >  #endif
> >          return false;
> 
> Seems like this should use #else.
> 
> But also, is it really important to return false for this when building
> without MathML support?

No, it isn't. Submitted a patch with this changed.
Comment 7 EWS 2021-10-15 08:13:30 PDT
Committed r284246 (243055@main): <https://commits.webkit.org/243055@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 441263 [details].