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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 24 03:59:52 PST 2014


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





--- Comment #15 from Mario Sanchez Prada <mario at webkit.org>  2014-01-24 03:57:19 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
> -Allows you to specify the number of minutes after which the computer will self-destruct.
> +Allows you to specify the number of minutes after
> +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

> Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp:252
> +    if (node && node->isHTMLElement()) {
> +        if (!toHTMLElement(node)->getAttribute(HTMLNames::aria_describedbyAttr).isEmpty()) {

You could early return if it's empty, saving one nested block more. Or even combine the two nested ifs and early return, but that would perhaps be less readable.

-- 
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