|
|
|
date: Thu, 6 Oct 2005 06:11:10 -0700,
group: microsoft.public.inetsdk.programming.html_objmodel
back
textRange object
Hi,
Surprisingly, no one seems to have encountered this issue anywhere I've
searched.
My problem is, while looping through a document using the textRange object,
it appears that when it encounters the search string in text that is not
"selectable", such as the href value in a link, or other "non-displayed"
html, I get the following error:
Error: Could not complete the operation due to error 800a025e.
It would have been nice if there was an "isSelectable", or "innerText"
property on the textRange object.
Any suggestions, solutions or work-a-rounds?
Thanks
Tony
date: Thu, 6 Oct 2005 06:11:10 -0700
author: TonyWeb
Re: textRange object
TonyWeb wrote:
> Surprisingly, no one seems to have encountered this issue anywhere
> I've searched.
>
> My problem is, while looping through a document using the textRange
> object, it appears that when it encounters the search string in text
> that is not "selectable", such as the href value in a link, or other
> "non-displayed" html, I get the following error:
>
> Error: Could not complete the operation due to error 800a025e.
I'm not sure I understand. In my experience, TextRange only searches the
displayed text, it does not look inside element attributes. Can you show
an example of what you are doing?
> It would have been nice if there was an "isSelectable", or "innerText"
> property on the textRange object.
You mean like textRange.text property?
--
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
date: Thu, 6 Oct 2005 10:06:05 -0400
author: Igor Tandetnik
|
|