[Qt-interest] QtWebKit's JavaScript

Gav Wood qt-interest at quidprocode.co.uk
Wed Jul 29 18:22:17 CEST 2009


Hi all,

I'm currently working from a week-old snapshot of the Git repository.
I'm looking to use the JavaScript in QWebView to navigate around a
document rendered into HTML. The two navigation classes I have found
for use in DOM with JavaScript, NodeIterator and TreeWalker, appear to
be unfortuately useless in Qt's WebKit though:

- NodeIterator provides no means to set the current reference node (a
nonstandard property to retrieve it is "referenceNode", but this
appears to be read-only).

- TreeWalker appears not to work at all.

Can anyone else confirm these assertions? Has anyone found a simple
workaround? Does anyone know if they likely to be fixed (or the
relevant fixes ported accross from WebKit proper) in the near future?

Cheers,

Gav.



More information about the Qt-interest-old mailing list