| Index: Source/modules/accessibility/AXNodeObject.cpp
|
| diff --git a/Source/modules/accessibility/AXNodeObject.cpp b/Source/modules/accessibility/AXNodeObject.cpp
|
| index 2c79418780600d03ca686cadf8e37ec36e2a7183..13a1092306aa1ebaee62fe9f6f5e9d0c8c9fbdce 100644
|
| --- a/Source/modules/accessibility/AXNodeObject.cpp
|
| +++ b/Source/modules/accessibility/AXNodeObject.cpp
|
| @@ -1841,6 +1841,16 @@ String AXNodeObject::textAlternative(bool recursive, bool inAriaLabelledByTraver
|
| return accumulatedText.toString();
|
| }
|
|
|
| + // Step 2C from: http://www.w3.org/TR/accname-aam-1.1
|
| + if (hasAttribute(aria_labelAttr)) {
|
| + const AtomicString& ariaLabel = getAttribute(aria_labelAttr);
|
| + if (!ariaLabel.isEmpty()) {
|
| + if (nameFrom)
|
| + *nameFrom = AXNameFromAttribute;
|
| + return ariaLabel;
|
| + }
|
| + }
|
| +
|
| // Step 2F / 2G from: http://www.w3.org/TR/accname-aam-1.1
|
| if (recursive || nameFromContents()) {
|
| if (nameFrom)
|
|
|