Changeset 173515 in webkit


Ignore:
Timestamp:
Sep 11, 2014 9:13:23 AM (10 years ago)
Author:
Chris Fleizach
Message:

AX: Children inside a <legend> are not accessible
https://bugs.webkit.org/show_bug.cgi?id=136735

Reviewed by Mario Sanchez Prada.

Source/WebCore:

The AX children of a <legend> are being hidden currently, which makes it impossible for
VoiceOver to activate control elements inside of a <legend>.
The solution is that legend elements SHOULD be allowed to have children.

Test: accessibility/legend-children-are-visible.html

  • accessibility/AccessibilityNodeObject.cpp:

(WebCore::AccessibilityNodeObject::canHaveChildren):

LayoutTests:

  • accessibility/legend-children-are-visible-expected.txt: Added.
  • accessibility/legend-children-are-visible.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r173512 r173515  
     12014-09-11  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: Children inside a <legend> are not accessible
     4        https://bugs.webkit.org/show_bug.cgi?id=136735
     5
     6        Reviewed by Mario Sanchez Prada.
     7
     8        * accessibility/legend-children-are-visible-expected.txt: Added.
     9        * accessibility/legend-children-are-visible.html: Added.
     10
    1112014-09-11  Philippe Normand  <pnormand@igalia.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r173513 r173515  
     12014-09-11  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: Children inside a <legend> are not accessible
     4        https://bugs.webkit.org/show_bug.cgi?id=136735
     5
     6        Reviewed by Mario Sanchez Prada.
     7
     8        The AX children of a <legend> are being hidden currently, which makes it impossible for
     9        VoiceOver to activate control elements inside of a <legend>.
     10        The solution is that legend elements SHOULD be allowed to have children.
     11
     12        Test: accessibility/legend-children-are-visible.html
     13
     14        * accessibility/AccessibilityNodeObject.cpp:
     15        (WebCore::AccessibilityNodeObject::canHaveChildren):
     16
    1172014-09-11  Brendan Long  <b.long@cablelabs.com>
    218
  • trunk/Source/WebCore/accessibility/AccessibilityNodeObject.cpp

    r173459 r173515  
    401401    case ProgressIndicatorRole:
    402402        return false;
    403     case LegendRole:
    404         if (Element* element = this->element())
    405             return !ancestorsOfType<HTMLFieldSetElement>(*element).first();
    406         FALLTHROUGH;
    407403    default:
    408404        return true;
Note: See TracChangeset for help on using the changeset viewer.