On Wednesday, July 2, 2003, at 11:15 AM, Matthew T. Russotto wrote:
Hmm. Well it seems WebKit is really not suitable for much other than
a straight browser.
Why do you draw that conclusion? WebKit is already being used by
applications that are not straight browsers, like Mail, Help Viewer and
Sherlock. The "Picture Browser" sample also demonstrates some very
non-browsery uses of WebKit.
For instance, it doesn't look like you can intercept a click on a link
which points to an anchor in the same document.
Do you have an example that shows you can't? I believe it should work
using the normal policy delegate mechanism to intercept link clicks.
Nor can you scroll to an anchor (other than by navigation).
Scrolling with navigation doesn't really seem like a big deal to me.
After all, who cares if you get a #whatever at the end of the URL if
your app is really that non-browsery?
var anchor = document.anchors["myAnchor"];
You can't really delve into the HTML structure, e.g. to tell where a
particular element is.
It's true that we currently don't have this feature, although again you
in the document.
Maybe using WebCore directly is a better idea... but there's no
stable API for that, is there?
WebCore has no public API, and in general it's not a good idea to link
to it directly. Maybe if you tell us a bit more about your specific
requirements, we can help you figure out ways to do what you want with