RESOLVED FIXED 171496
[ATK] Expose values of aria-rowcount, aria-colcount, aria-rowindex, aria-colindex, aria-rowspan, and aria-colspan as object attributes
https://bugs.webkit.org/show_bug.cgi?id=171496
Summary [ATK] Expose values of aria-rowcount, aria-colcount, aria-rowindex, aria-coli...
Joanmarie Diggs
Reported 2017-05-01 07:37:22 PDT
Expose values of aria-rowcount, aria-colcount, aria-rowindex, aria-colindex, aria-rowspan, and aria-colspan as object attributes
Attachments
Patch (7.99 KB, patch)
2017-05-01 07:56 PDT, Joanmarie Diggs
no flags
Patch (11.90 KB, patch)
2017-05-01 12:41 PDT, Joanmarie Diggs
no flags
Radar WebKit Bug Importer
Comment 1 2017-05-01 07:37:48 PDT
Joanmarie Diggs
Comment 2 2017-05-01 07:56:04 PDT
chris fleizach
Comment 3 2017-05-01 08:48:38 PDT
Comment on attachment 308720 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=308720&action=review > Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp:416 > + if (coreObject->hasAttribute(HTMLNames::aria_rowspanAttr)) surprised we have to query the attribute directly here. should we make a method to expose rowSpan/colSpan?
Joanmarie Diggs
Comment 4 2017-05-01 08:56:55 PDT
(In reply to chris fleizach from comment #3) > Comment on attachment 308720 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=308720&action=review > > > Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp:416 > > + if (coreObject->hasAttribute(HTMLNames::aria_rowspanAttr)) > > surprised we have to query the attribute directly here. should we make a > method to expose rowSpan/colSpan? We do have a method to expose it, and I use it, e.g. cell.ariaRowSpan(). The problem is that on my platform, the attribute should be exposed if the author has provided it. We return a default value of 1 on the spans, and 1 is valid. So it it author provided or set by WebCore? I could change the return value to 0, as was done with rowcount and colcount, and then modify the platform code. You think I should go that route?
chris fleizach
Comment 5 2017-05-01 08:58:40 PDT
(In reply to Joanmarie Diggs (irc: joanie) from comment #4) > (In reply to chris fleizach from comment #3) > > Comment on attachment 308720 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=308720&action=review > > > > > Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp:416 > > > + if (coreObject->hasAttribute(HTMLNames::aria_rowspanAttr)) > > > > surprised we have to query the attribute directly here. should we make a > > method to expose rowSpan/colSpan? > > We do have a method to expose it, and I use it, e.g. cell.ariaRowSpan(). > > The problem is that on my platform, the attribute should be exposed if the > author has provided it. We return a default value of 1 on the spans, and 1 > is valid. So it it author provided or set by WebCore? > > I could change the return value to 0, as was done with rowcount and > colcount, and then modify the platform code. You think I should go that > route? It feels like we should be consistent with that model now (0 is no value provided) thanks
Joanmarie Diggs
Comment 6 2017-05-01 12:41:05 PDT
Joanmarie Diggs
Comment 7 2017-05-01 12:43:33 PDT
(In reply to chris fleizach from comment #5) > It feels like we should be consistent with that model now (0 is no value > provided) It turns out 0 is a valid value for authors to provide. Returning -1 is consistent with what we do with ariaRowIndex() and ariaColumnIndex().
WebKit Commit Bot
Comment 8 2017-05-01 14:19:13 PDT
Comment on attachment 308751 [details] Patch Clearing flags on attachment: 308751 Committed r216028: <http://trac.webkit.org/changeset/216028>
WebKit Commit Bot
Comment 9 2017-05-01 14:19:14 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.