OSDN Git Service

MSHTML NVDAObject name property: Let' sstill treat an empty title string as no title...
authorJames Teh <jamie@jantrid.net>
Thu, 23 Feb 2012 04:32:01 +0000 (14:32 +1000)
committerJames Teh <jamie@jantrid.net>
Thu, 23 Feb 2012 04:32:01 +0000 (14:32 +1000)
source/NVDAObjects/IAccessible/MSHTML.py

index 75f3e25..a13bd2b 100644 (file)
@@ -464,7 +464,7 @@ class MSHTML(IAccessible):
                title=self.HTMLAttributes['title']\r
                # #2121: MSHTML sometimes returns a node for the title attribute.\r
                # This doesn't make any sense, so ignore it.\r
-               if isinstance(title,basestring):\r
+               if title and isinstance(title,basestring):\r
                        return title\r
                if self.IAccessibleRole==oleacc.ROLE_SYSTEM_TABLE:\r
                        summary=self.HTMLAttributes['summary']\r