Index: src/orca/Gecko.py
===================================================================
--- src/orca/Gecko.py	(revision 2561)
+++ src/orca/Gecko.py	(working copy)
@@ -5582,7 +5582,8 @@
         elif includeNonText and (startOffset < 0) \
             and (not self.isLayoutOnly(obj)):
             extents = obj.extents
-            if (extents.width != 0) and (extents.height != 0):
+            if (extents.width != 0) and (extents.height != 0) \
+               and self.inDocumentContent(obj):
                 return [obj, 0]
 
         # If we're here, we need to start looking up the tree,

