Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebKit API for DOM

Does WebKit expose an API for working directly with its DOM? I'm looking for a class like HtmlElement that can be used to build/traverse trees of HTML content.

I'm trying to host WebKit as a web browser control in a desktop application, and would prefer a direct API rather than going through COM. Thanks!

Thanks!

like image 516
Tony the Pony Avatar asked Feb 19 '09 04:02

Tony the Pony


1 Answers

Using QT/WebKit (at least version 4.6) it's now possible to access the DOM of the loaded document.

QtWebKit Module reference

DOM Traversal Example

like image 155
Luca Tettamanti Avatar answered Sep 28 '22 09:09

Luca Tettamanti