⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 167559 in webkit


Ignore:
Timestamp:
Apr 19, 2014, 6:38:48 PM (12 years ago)
Author:
Chris Fleizach
Message:

AX: grid rows are not recognized do to lack of explicit role="row", role="gridcell"
https://bugs.webkit.org/show_bug.cgi?id=131819

Reviewed by Darin Adler.

Source/WebCore:
Test: accessibility/table-with-missing-aria-role-rows.html

If a table is using role="grid", and it has <tr> elements that do not have
role="row", we should still treat them as row elements.

  • accessibility/AccessibilityARIAGrid.cpp:

(WebCore::AccessibilityARIAGrid::addTableCellChild):

LayoutTests:

  • accessibility/table-with-missing-aria-role-rows-expected.txt: Added.
  • accessibility/table-with-missing-aria-role-rows.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r167558 r167559  
     12014-04-19  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: grid rows are not recognized do to lack of explicit role="row", role="gridcell"
     4        https://bugs.webkit.org/show_bug.cgi?id=131819
     5
     6        Reviewed by Darin Adler.
     7
     8        * accessibility/table-with-missing-aria-role-rows-expected.txt: Added.
     9        * accessibility/table-with-missing-aria-role-rows.html: Added.
     10
    1112014-04-19  Chris Fleizach  <cfleizach@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r167558 r167559  
     12014-04-19  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: grid rows are not recognized do to lack of explicit role="row", role="gridcell"
     4        https://bugs.webkit.org/show_bug.cgi?id=131819
     5
     6        Reviewed by Darin Adler.
     7
     8        Test: accessibility/table-with-missing-aria-role-rows.html
     9
     10        If a table is using role="grid", and it has <tr> elements that do not have
     11        role="row", we should still treat them as row elements.
     12
     13        * accessibility/AccessibilityARIAGrid.cpp:
     14        (WebCore::AccessibilityARIAGrid::addTableCellChild):
     15
    1162014-04-19  Chris Fleizach  <cfleizach@apple.com>
    217
  • trunk/Source/WebCore/accessibility/AccessibilityARIAGrid.cpp

    r165676 r167559  
    5555bool AccessibilityARIAGrid::addTableCellChild(AccessibilityObject* child, HashSet<AccessibilityObject*>& appendedRows, unsigned& columnCount)
    5656{
    57     if (!child || !child->isTableRow() || child->ariaRoleAttribute() != RowRole)
     57    if (!child || (!child->isTableRow() && child->ariaRoleAttribute() != RowRole))
    5858        return false;
    5959       
Note: See TracChangeset for help on using the changeset viewer.