On 13.01.12 13:45:29, Kovid Goyal wrote:
> In my experience (writing an ebook viewer based on Qt WebKit) disagreements
> between DOM and javascript values are *very* common. There's no a priori way 
> to
> know which is correct. You have to do it on a case by case basis and be 
> prepared
> to have lots of heuristic sanity checks. Furthermore, the things that disagree
> and how they disagree change with Qt releases. 
> 
> See for example lines 430 to 447 here:
> http://bazaar.launchpad.net/~kovid/calibre/trunk/view/head:/src/calibre/gui2/viewer/documentview.py
> 
> In short, it's a crapshoot.

Well, determining coordinates and height/width for elements is a
completely different story than fetching a static attribute from a
static element in a static page.

Andreas

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to