How to get the 'nsIDOMHTMLDocument' interface from 'ISimpleDOMDocument' interface?
I have gotten the ISimpleDOMDocument interface throught MSAA interfaces.
Is there any method to get the nsIDOMHTMLDocument from ISimpleDOMDocument?
I had tried call QueryInterface to ISimpleDOMDocument and QueryService to IServiceProvider of ISimpleDOMDocument, but they all failed.
Whether I missing something or it is logjam at all.
But in the document http://www.mozilla.org/access/windows/at-apis, I found text as below:
"The MSAA tree and the DOM tree are parallel structures, although the MSAA tree is a subset of the DOM tree. QueryService() can be used to switch between the interfaces (IAccessible, ISimpleDOMDocument, ISimpleDOMNode and ISimpleDOMText). If there is no MSAA node for a DOM node, or vice-versa, QueryService() will return null."
If you want the currently selected text, you will be able to get that in
Firefox 3 via the IAccessible2 (specifically IAccessibleText) interface
However, if this is a Firefox-specific project it would be best to do it
as an extension.
> Hi Aaron,
> Thanks for your information!
> I want to get detail DOM interface so that I can get state of current
> webpage e.g. current selecting text, and I hope there isn't plugin or
> extension with my tool.
> But it look like there isn't way to do this.
> Anyway, thank you again.
> Aaron Leventhal-3 wrote:
>> You can't get to the nsI* interfaces from out-of-process. They're XPCOM,
>> not COM. That means they're available to Mozilla components that are
>> linked against each other, and to script.
>> Maybe tell us what you're trying to do?
>> - Aaron
>> dev-accessibility mailing list
>> [hidden email] >> https://lists.mozilla.org/listinfo/dev-accessibility >>