[orca] Don't present aria-placeholder value when it's identical to aria-label



commit 37cd15d47f78337e15868e499ff915c112e663c4
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Aug 25 13:43:17 2020 +0200

    Don't present aria-placeholder value when it's identical to aria-label

 src/orca/generator.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/generator.py b/src/orca/generator.py
index c60fd031f..a3d4a1b97 100644
--- a/src/orca/generator.py
+++ b/src/orca/generator.py
@@ -366,11 +366,11 @@ class Generator:
         """
         attrs = self._script.utilities.objectAttributes(obj)
         placeholder = attrs.get('placeholder-text')
-        if placeholder:
+        if placeholder and placeholder != obj.name:
             return [placeholder]
 
         placeholder = attrs.get('placeholder')
-        if placeholder:
+        if placeholder and placeholder != obj.name:
             return [placeholder]
 
         return []


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]