Apparently, you cannot get the full HTML source using IAccessible. I found this, but it does not work in FF3.5:
IServiceProvider *pServProv = NULL; pAccessible->QueryInterface(IID_IServiceProvider, (void**)&pServProv); ISimpleDOMNode *pSimpleDOMNode; if (pServProv) { const GUID refguid = {0x0c539790, 0x12e4, 0x11cf, 0xb6, 0x61, 0x00, 0xaa, 0x00, 0x4c, 0xd6, 0xd8}; HRESULT result = pServProv->QueryService(refguid, IID_ISimpleDOMNode, (void**)&pSimpleDOMNode); if (SUCCEEDED(hresult) && pSimpleDOMNode != NULL) { } }
I also found this, which also does not work in FF3.5:
HRESULT hr = AccessibleObjectFromWindow(hwnd, OBJID_CLIENT, IID_IAccessible, (void**)&pAccessible); if (SUCCEEDED(hr) && pAccessible != NULL) { HRESULT hr = pAccessible->QueryInterface( IID_ISimpleDOMNode, (void**)&pSimpleDOMNode); }
I am stuck.: (
source share