Commit 5ffa3f0
committed
AX:
https://bugs.webkit.org/show_bug.cgi?id=300899
rdar://162783041
Reviewed by Joshua Hoffman.
Elements with the HTML hidden attribute were incorrectly appearing in
VoiceOver's Form Control rotor when they had certain ARIA attributes.
This happened because defaultObjectInclusion() only checked for
display:none on ancestor elements, not on the element itself. This commit
fixes that.
Test: accessibility/hidden-elements-with-aria-attributes.html
* LayoutTests/accessibility/hidden-elements-with-aria-attributes-expected.txt: Added.
* LayoutTests/accessibility/hidden-elements-with-aria-attributes.html: Added.
* LayoutTests/platform/ios/TestExpectations:
* Source/WebCore/accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::defaultObjectInclusion const):
Canonical link: https://commits.webkit.org/305902@mainaria-controls and aria-expanded keeps elements with hidden attribute visible in Voice Over's Form Control menu1 parent 34d4f27 commit 5ffa3f0
File tree
4 files changed
+77
-0
lines changed- LayoutTests
- accessibility
- platform/ios
- Source/WebCore/accessibility
4 files changed
+77
-0
lines changedLines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 54 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2383 | 2383 | | |
2384 | 2384 | | |
2385 | 2385 | | |
| 2386 | + | |
2386 | 2387 | | |
2387 | 2388 | | |
2388 | 2389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3976 | 3976 | | |
3977 | 3977 | | |
3978 | 3978 | | |
| 3979 | + | |
| 3980 | + | |
| 3981 | + | |
| 3982 | + | |
| 3983 | + | |
3979 | 3984 | | |
3980 | 3985 | | |
3981 | 3986 | | |
| |||
0 commit comments