I've got an application that uses WebKit to display web pages that I
generate on the fly. My app takes a single HTML file (built into the
Resources folder), then uses XSLT stylesheets to break it into up to
five different frames. Note that the frames always have the same path
each time they are generated. The main frame is then handed to WebKit
via loadRequest:.
As the frames load, I catch the notifications with
webView:didFinishLoadForFrame:, then walk the DOM (via DOMDocument on
the frame) looking for certain tags. Most of the time this works
without problem. However, sometimes one of the frames does not have a
complete DOM; it only has the HEAD, not the BODY. Therefore I don't
find the tags I'm looking for.
That said, all the frames always render correctly, even the nodes
that did not show up in the DOM. When I go look at the HTML of the
frame that did not load, it is correct, and in fact identical to the
HTML that did load on a previous try.
Although I cannot prove it, it appears that
webView:didFinishLoadForFrame: is firing prematurely in some cases.
Has anyone else seen this, and, more importantly, know of a fix or
work around for it?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden