NEW 161081
Accessibility of MathML links
https://bugs.webkit.org/show_bug.cgi?id=161081
Summary Accessibility of MathML links
Frédéric Wang (:fredw)
Reported 2016-08-23 07:57:02 PDT
Support for MathML links was added in bug 85733. After the MathML article on the Safari blog we got feedback about accessibility of MathML links (see the demo https://webkit.org/demos/mathml/demo2016/#hyperlinks). I'm not sure exactly what is required, but it seems that we should somewhat expose the MathML links to the accessibility tree so that ATs can understand it.
Attachments
WIP Patch (4.84 KB, patch)
2016-08-23 07:58 PDT, Frédéric Wang (:fredw)
buildbot: commit-queue-
Archive of layout-test-results from ews103 for mac-yosemite (845.68 KB, application/zip)
2016-08-24 10:03 PDT, Build Bot
no flags
Archive of layout-test-results from ews105 for mac-yosemite-wk2 (798.16 KB, application/zip)
2016-08-24 10:07 PDT, Build Bot
no flags
Archive of layout-test-results from ews117 for mac-yosemite (1.54 MB, application/zip)
2016-08-24 10:18 PDT, Build Bot
no flags
Frédéric Wang (:fredw)
Comment 1 2016-08-23 07:58:43 PDT
Created attachment 286711 [details] WIP Patch This is an experimental patch adding role Link to MathML elements with a href attribute.
Radar WebKit Bug Importer
Comment 2 2016-08-23 22:26:36 PDT
chris fleizach
Comment 3 2016-08-24 09:06:40 PDT
Comment on attachment 286711 [details] WIP Patch View in context: https://bugs.webkit.org/attachment.cgi?id=286711&action=review > Source/WebCore/accessibility/AccessibilityMathMLElement.cpp:62 > + if (node && node->isLink()) I don't know if we want to change the math role away from what it is to a link. if you put the href on a <mfrac> then that might mess up the math tree that's created it seems like either we should a) expand the concept of roles so that an object can have more than one role b) make being a link an attribute as well as a role (probably the easiest path) c) make a fake element representing the link that becomes the parent of the object
Frédéric Wang (:fredw)
Comment 4 2016-08-24 09:20:58 PDT
(In reply to comment #3) > Comment on attachment 286711 [details] > WIP Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=286711&action=review > > > Source/WebCore/accessibility/AccessibilityMathMLElement.cpp:62 > > + if (node && node->isLink()) > > I don't know if we want to change the math role away from what it is to a > link. > if you put the href on a <mfrac> then that might mess up the math tree > that's created (In reply to comment #3) > I don't know if we want to change the math role away from what it is to a > link. > if you put the href on a <mfrac> then that might mess up the math tree > that's created We definitely do not want to have the role overridden (although that's maybe not too much a trouble if href is only used on mrow). That's why I did not ask review for this patch ;-) > it seems like either we should > a) expand the concept of roles so that an object can have more than one role > b) make being a link an attribute as well as a role (probably the easiest > path) > c) make a fake element representing the link that becomes the parent of the > object I believe we should get feedback from AT developers but my guess would be that on their side: c) won't need any effort , b) will need a minor effort and a) will be more complex. Actually I'm curious about c), since that might help to remove anonymous nodes for mfenced if we decide to rewrite its renderer class (bug 160509).
chris fleizach
Comment 5 2016-08-24 09:25:23 PDT
(In reply to comment #4) > (In reply to comment #3) > > Comment on attachment 286711 [details] > > WIP Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=286711&action=review > > > > > Source/WebCore/accessibility/AccessibilityMathMLElement.cpp:62 > > > + if (node && node->isLink()) > > > > I don't know if we want to change the math role away from what it is to a > > link. > > if you put the href on a <mfrac> then that might mess up the math tree > > that's created > > (In reply to comment #3) > > I don't know if we want to change the math role away from what it is to a > > link. > > if you put the href on a <mfrac> then that might mess up the math tree > > that's created > > We definitely do not want to have the role overridden (although that's maybe > not too much a trouble if href is only used on mrow). That's why I did not > ask review for this patch ;-) > > > it seems like either we should > > a) expand the concept of roles so that an object can have more than one role > > b) make being a link an attribute as well as a role (probably the easiest > > path) > > c) make a fake element representing the link that becomes the parent of the > > object > > I believe we should get feedback from AT developers but my guess would be > that on their side: c) won't need any effort , b) will need a minor effort > and a) will be more complex. > > Actually I'm curious about c), since that might help to remove anonymous > nodes for mfenced if we decide to rewrite its renderer class (bug 160509). i’m concerned C) might have adverse affects too. if you put this on a node within a math term, it might also change the expected hierarchy and break something. i think b) might be the easiest although we’ll need to change ATs for mac. iOS should be able to easily adopt this since a link is already an attribute
Build Bot
Comment 6 2016-08-24 10:03:50 PDT
Comment on attachment 286711 [details] WIP Patch Attachment 286711 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/1934903 New failing tests: accessibility/math-links.html
Build Bot
Comment 7 2016-08-24 10:03:54 PDT
Created attachment 286858 [details] Archive of layout-test-results from ews103 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 8 2016-08-24 10:07:33 PDT
Comment on attachment 286711 [details] WIP Patch Attachment 286711 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/1934911 New failing tests: accessibility/math-links.html
Build Bot
Comment 9 2016-08-24 10:07:37 PDT
Created attachment 286859 [details] Archive of layout-test-results from ews105 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 10 2016-08-24 10:18:10 PDT
Comment on attachment 286711 [details] WIP Patch Attachment 286711 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/1934923 New failing tests: accessibility/math-links.html
Build Bot
Comment 11 2016-08-24 10:18:15 PDT
Created attachment 286860 [details] Archive of layout-test-results from ews117 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-yosemite Platform: Mac OS X 10.10.5
Note You need to log in before you can comment on or make changes to this bug.