-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=120814 Patch by Samuel White <samuel_white@apple.com> on 2013-09-12 Reviewed by Mario Sanchez Prada. Source/WebCore: Implemented additional 'Text Alternative Computation' steps documented at: http://www.w3.org/WAI/PF/aria/complete#textalternativecomputation. This allows us to remove our raw text node iteration that was previously forcing us to do our computation incorrectly. Element content is now sourced using textUnderElement (step 2C of the computation). Test: accessibility/self-referencing-aria-labelledby.html * accessibility/AccessibilityNodeObject.cpp: (WebCore::accessibleNameForNode): (WebCore::AccessibilityNodeObject::accessibilityDescriptionForElements): LayoutTests: Test to verify that self-referencing aria-labelledby behavior works as expected. * accessibility/self-referencing-aria-labelledby-expected.txt: Added. * accessibility/self-referencing-aria-labelledby.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155601 268f45cc-cd09-0410-ab3c-d52691b4dbfc
39a74d11