[webkit-dev] Alter DOM before display
todd at ditchnet.org
Tue Nov 20 17:09:28 PST 2007
this is just a guess, but i would try this WebFrameLoadDelegate method
- (void)webView:(WebView *)webView didClearWindowObject:
(WebScriptObject *)windowObject forFrame:(WebFrame *)frame;
or this one on tiger:
- (void)webView:(WebView *)webView windowScriptObjectAvailable:
someone from webkit team will know better.
On Nov 20, 2007, at 6:42 PM, martin.cocoa at free.fr wrote:
> 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
> If I get the DOM document when the
> 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
> It is possible to "observe" [frame DOMDocument] and start doing
> things as soon
> as it is not empty?
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
More information about the webkit-dev