(In reply to Carolyn MacLeod from comment #0) > td in treegrid should have implicit role of gridcell I agree, though this also needs to be fixed in the HTML AAM. Currently, the HTMl AAM has mappings for td with table and grid roles, but not treegrid: https://w3c.github.io/html-aam/#html-element-role-mappings Implementation note: We should be able to handle this here where we handle grid -> implicit gridcell: https://searchfox.org/mozilla-central/rev/0e309417bdc73be33fc93f6bd7a0d4063d2c6e51/accessible/generic/Accessible.cpp#1462 > (also, what does role="tree table" mean? I would expect this treegrid to have a role of "treegrid" in the accessibility tree.) The roles exposed in the accessibility tree are Firefox roles, not ARIA roles. For example, there are roles for which there is no equivalent in ARIA; e.g. text and text leaf. The Firefox "tree table" role existed before ARIA treegrid. That said, I get that this is confusing for web devs. We should potentially consider changing the friendly role names to match ARIA wherever possible, though that should be handled in a different bug.
Bug 1656339 Comment 2 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
(In reply to Carolyn MacLeod from comment #0) > td in treegrid should have implicit role of gridcell I agree, though this also needs to be fixed in the HTML AAM. Currently, the HTMl AAM has mappings for td with table and grid roles, but not treegrid: https://w3c.github.io/html-aam/#html-element-role-mappings Implementation note: We should be able to handle this here where we handle grid -> implicit gridcell: https://searchfox.org/mozilla-central/rev/67c9592293e8d9f143e6053c8cfd6b7723207e3c/accessible/generic/LocalAccessible.cpp#1943 > (also, what does role="tree table" mean? I would expect this treegrid to have a role of "treegrid" in the accessibility tree.) The roles exposed in the accessibility tree are Firefox roles, not ARIA roles. For example, there are roles for which there is no equivalent in ARIA; e.g. text and text leaf. The Firefox "tree table" role existed before ARIA treegrid. That said, I get that this is confusing for web devs. We should potentially consider changing the friendly role names to match ARIA wherever possible, though that should be handled in a different bug.