[orca] Fix bug in code to identify insertion, deletion, and marked content
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix bug in code to identify insertion, deletion, and marked content
- Date: Tue, 28 Jan 2020 17:02:39 +0000 (UTC)
commit e66900e77c48089ca72bad0a3f4f4e1ad2a31c2a
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Tue Jan 28 12:01:59 2020 -0500
Fix bug in code to identify insertion, deletion, and marked content
src/orca/scripts/web/script_utilities.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index acaac039f..930f5afac 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -2128,7 +2128,7 @@ class Utilities(script_utilities.Utilities):
except:
pass
- return 'deletion' in self._getXMLRoles(obj) or 'del' in self._getTag(obj)
+ return 'deletion' in self._getXMLRoles(obj) or 'del' == self._getTag(obj)
def isContentInsertion(self, obj):
if not (obj and self.inDocumentContent(obj)):
@@ -2141,7 +2141,7 @@ class Utilities(script_utilities.Utilities):
except:
pass
- return 'insertion' in self._getXMLRoles(obj) or 'ins' in self._getTag(obj)
+ return 'insertion' in self._getXMLRoles(obj) or 'ins' == self._getTag(obj)
def isContentMarked(self, obj):
if not (obj and self.inDocumentContent(obj)):
@@ -2154,7 +2154,7 @@ class Utilities(script_utilities.Utilities):
except:
pass
- return 'mark' in self._getXMLRoles(obj) or 'mark' in self._getTag(obj)
+ return 'mark' in self._getXMLRoles(obj) or 'mark' == self._getTag(obj)
def isContentSuggestion(self, obj):
if not (obj and self.inDocumentContent(obj)):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]