Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IHTMLTextRange- Determine if element returned in FindText is VISIBLE

10 views
Skip to first unread message

MB34

unread,
May 29, 2009, 11:56:18 AM5/29/09
to
I'm sure many of you are aware that mshtml has a bug that occurs when
you use the select method of IHTMLTextRange when looping through
results of findText.
(800A0025E) This happens primarily when the element containing the
found text is not visible.

I was wondering if there was anyway to tell if the element is not
visible before the select?

Igor Tandetnik

unread,
May 29, 2009, 1:44:01 PM5/29/09
to

Can't you just call select() within try/catch block, and handle the
exception?
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


0 new messages