Re: Getting subdocuments (iframes) using ISimpleDOMNode
Alexander Surkov <[email protected]> Fri, 14 Sep 2012 09:56:45 +0900
| Newsgroups | gmane.comp.mozilla.accessibility |
|---|---|
| Message-ID | <CA+epNsfri0OwJm5ibs-Fq=ng5sn6sgRXj3TeFjNOrexOTToaxQ@mail.gmail.com> |
Hi. ISimpleDOMNode is a deprecated interface and you shouldn't use it until you considered alternatives in MSAA/IA2. In your case it seems you can get all subdocuments by simple IAccessible traversal + accessible role check. ISimpleDOMNode used to traverse the DOM document, think of it it as you call DOMNode methods. Thank you. Alex. On Fri, Sep 14, 2012 at 4:40 AM, <[email protected]> wrote: > What is the best way to retrieve a subdocument through traversing using ISimpleDOM* interfaces? > > Currently, I'm QIing to IAccessible when the node name is an iframe but it only works some of the time (as documented). When I have IAccessible I get the number of children and if there are any I QI to ISimpleDOMDocument and then can get the root of that subdocument from there and traverse using ISimpleDOMNode again. > > There is also no NODETYPE_DOCUMENT* types either beyond the root document that I've seen. I'm not sure if this is a bug, not really supported, or if I'm doing it wrong but this is not documented anywhere I've seen. > > Thanks in advance. > _______________________________________________ > dev-accessibility mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-accessibility