[orca] Don't treat text blocks with names as empty elements, even if they lack content
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't treat text blocks with names as empty elements, even if they lack content
- Date: Wed, 15 May 2019 13:13:12 +0000 (UTC)
commit 6f014944347d7d5ead93887db8b3b7d66c331b5e
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed May 15 15:12:02 2019 +0200
Don't treat text blocks with names as empty elements, even if they lack content
src/orca/scripts/web/script_utilities.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index dd735242a..a5afdc935 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -609,6 +609,9 @@ class Utilities(script_utilities.Utilities):
if not self.isTextBlockElement(obj):
return False
+ if obj.name:
+ return False
+
return self.queryNonEmptyText(obj, False) is None
def isHidden(self, obj):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]