[Webkit-unassigned] [Bug 121684] [ATK] Expose aria-describedby with ATK_RELATION_DESCRIBED_BY

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 27 09:23:40 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=121684





--- Comment #17 from chris fleizach <cfleizach at apple.com>  2014-01-27 09:21:03 PST ---
(From update of attachment 221984)
View in context: https://bugs.webkit.org/attachment.cgi?id=221984&action=review

>> LayoutTests/accessibility/aria-describedby-on-input-expected.txt:3
>> +which the computer will self-destruct.
> 
> I still don't quite understand why the line break shows up here. IMHO, the text from the two divs should be concatenated together and joined with a " ", not a line break.
> 
> Chris, could you comment on this issue? Maybe it's me misunderstanding how this aria-describedby thing should work, or maybe it's another bug somewhere else

yea i'm also a little surprised that ariaDescribedByAttribute() would somehow get the newline
It would indicate that
static String accessibleNameForNode(Node* node) -> textUnderElement()
  returns a string in the first element that has a newline
that surprises me. i don't think it's a show stopper and I don't think this patch is the cause of the problem, but it's something we should at least understand

> Source/WebCore/accessibility/AccessibilityObject.cpp:2141
> +    for (unsigned i = 0; i < size; ++i) {

we should use 
for (auto name : idVector)

> Source/WebCore/accessibility/AccessibilityObject.cpp:2144
> +        if (idElement)

this can be written
if (Element* idElement = treeScope...)
   elements.append()

> Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp:253
> +            removeAtkRelationByType(relationSet, ATK_RELATION_DESCRIBED_BY);

There's a ariaDescribedByAttribute() on the AXObject. We should make that public so you can call that directly, instead of calling the attribute directly on the Node object in the platform code

> Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp:258
> +                if (!axObject)

this if can be combined with the line above

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list