this is just a guess, but i would try this WebFrameLoadDelegate method
on leopard:
- (void)webView:(WebView *)webView didClearWindowObject:
(WebScriptObject *)windowObject forFrame:(WebFrame *)frame;
or this one on tiger:
- (void)webView:(WebView *)webView windowScriptObjectAvailable:
(WebScriptObject *)windowScriptObject;
someone from webkit team will know better.
todd
On Nov 20, 2007, at 6:42 PM, [EMAIL PROTECTED] wrote:
Hi,
I asked this question to webkitsdk-dev, but I didn't get an anwser.
Maybe I'll
be more lucky here...
Is it possible to access the DOM (and eventually) alter it before it
is actually
displayed?
If I get the DOM document when the
"webView:didStartProvisionalLoadForFrame:"
method is called, it's empty because the HTML has not been
downloaded yet.
If I get the DOM document when the "webView:didFinishLoadForFrame:"
method is
called, the web page is already (partly) displayed and it's too late
to modify
the DOM before anything is displayed.
What's the best way to get the DOM as soon as it's available? Is it
even
possible?
It is possible to "observe" [frame DOMDocument] and start doing
things as soon
as it is not empty?
Thanks,
Martin.
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev