RESOLVED FIXED 129369
AX: accessibility data table heuristics fail on this jQuery table
https://bugs.webkit.org/show_bug.cgi?id=129369
Summary AX: accessibility data table heuristics fail on this jQuery table
James Craig
Reported 2014-02-26 01:42:02 PST
AX: accessibility data table heuristics fail on this jQuery table. Not yet sure why. http://view.jquerymobile.com/1.3.2/dist/demos/widgets/table-reflow/
Attachments
patch (9.97 KB, patch)
2014-03-12 23:24 PDT, chris fleizach
mario: review+
Radar WebKit Bug Importer
Comment 1 2014-02-26 01:42:11 PST
James Craig
Comment 2 2014-02-26 04:13:06 PST
It appears it's because the table element's display property is set to table-row-group instead of table.
chris fleizach
Comment 3 2014-03-12 23:24:31 PDT
James Craig
Comment 4 2014-03-13 01:24:15 PDT
Comment on attachment 226577 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=226577&action=review > LayoutTests/accessibility/table-detection.html:1 > -<html> > +<!DOCTYPE html> You need both the DTD declartion and the opening <html> tag. <!DOCTYPE html> <html>
Mario Sanchez Prada
Comment 5 2014-03-13 05:33:57 PDT
Comment on attachment 226577 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=226577&action=review This new heuristic makes sense to me. Just please consider the nits below + James's comment before landing > Source/WebCore/ChangeLog:14 > + (WebCore::AccessibilityRenderObject::activeDescendant): The changes here seem to be unrelated to the patch, but I'm ok anyway as I don't think filing a new bug for those is worth it. > Source/WebCore/accessibility/AccessibilityTable.cpp:140 > + // if there is a caption element, summary, THEAD, or TFOOT section, it's most certainly a data table. "if"->"If" (yes, I know it's just re-indented code :-)) > Source/WebCore/accessibility/AccessibilityTable.cpp:144 > + // if someone used "rules" attribute than the table should appear "if"->"If" / "than"->"then" / missing period at the end > Source/WebCore/accessibility/AccessibilityTable.cpp:148 > + // if there's a colgroup or col element, it's probably a data table. "if"->"If"
chris fleizach
Comment 6 2014-03-13 08:57:21 PDT
(In reply to comment #5) > (From update of attachment 226577 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=226577&action=review > > This new heuristic makes sense to me. Just please consider the nits below + James's comment before landing > > > Source/WebCore/ChangeLog:14 > > + (WebCore::AccessibilityRenderObject::activeDescendant): > > The changes here seem to be unrelated to the patch, but I'm ok anyway as I don't think filing a new bug for those is worth it. > I meant to add a comment in the ChangeLog. This change was necessary otherwise getting the active descendant would crash in this kind of table (once it was detected as a table) > > Source/WebCore/accessibility/AccessibilityTable.cpp:140 > > + // if there is a caption element, summary, THEAD, or TFOOT section, it's most certainly a data table. > > "if"->"If" (yes, I know it's just re-indented code :-)) > > > Source/WebCore/accessibility/AccessibilityTable.cpp:144 > > + // if someone used "rules" attribute than the table should appear > > "if"->"If" / "than"->"then" / missing period at the end > > > Source/WebCore/accessibility/AccessibilityTable.cpp:148 > > + // if there's a colgroup or col element, it's probably a data table. > > "if"->"If" Thanks!
chris fleizach
Comment 7 2014-03-13 09:29:54 PDT
Note You need to log in before you can comment on or make changes to this bug.