[Qt-interest] Difference Webkit in 4.7 and 4.8
Guido Seifert
wargand at gmx.de
Mon Nov 7 22:57:07 CET 2011
Hi, I know, this is not the webkit mailing list.
Still I just discovered something ugly an I am not sure, which is the correct behaviour.
Qt 4.7.4:
I fetch myself a QWebFrame mFrame via QWebPage::mainFrame().
Then I get an element:
QWebElement mDoc = mFrame->documentElement();
Now
'mDoc.toOuterXml()'
returns '<html></html>'. And
QWebElement header = mDoc.findFirst("head");
returns a null element.
So far, so good.
Qt 4.8.0:
Exactly the same code:
QWebElement mDoc = mFrame->documentElement();
'mDoc.toOuterXml()' returns '<html><head></head><body></body></html>'
'mDoc.findFirst("head")' returns the header element.
Generally I can live with either of those behaviours, but it would be ugly
if I had to check what webkit is running and provide different code for
such a ridiculous difference.
What was the reason for this change? Is it a bug? Is there a way to switch
the 4.8. behaviour to the 4.7. behaviour?
Regards,
Guido
More information about the Qt-interest-old
mailing list