AX: Several ARIA roles with presentational children are exposing children
authorjdiggs@igalia.com <jdiggs@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Sep 2017 21:51:04 +0000 (21:51 +0000)
committerjdiggs@igalia.com <jdiggs@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Sep 2017 21:51:04 +0000 (21:51 +0000)
commit0e2fa82483f58309bf82acf2c087f3f2af5260aa
tree7a0c67ac3371134aabf6a3547750f36691d65c91
parentd007def426829e903ffd0257b36210381d183faf
AX: Several ARIA roles with presentational children are exposing children
https://bugs.webkit.org/show_bug.cgi?id=177502

Reviewed by Chris Fleizach.

Source/WebCore:

Add MenuItemCheckboxRole, MenuItemRadioRole, and SplitterRole to the list
of AccessibilityRole types which cannot have children. In the case of
DocumentMathRole, only treat children as presentational (excluded from the
accessibility tree) if the element is not MathML.

Test: accessibility/presentational-children.html

* accessibility/AccessibilityNodeObject.cpp:
(WebCore::AccessibilityNodeObject::canHaveChildren const):

LayoutTests:

* accessibility/presentational-children-expected.txt: Added.
* accessibility/presentational-children.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222525 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/presentational-children-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/presentational-children.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityNodeObject.cpp