I am using a QWebview to display web pages. The initial page loads and is displayed successfully. However, when a certain link on the page is clicked, the new page fails to load and the webview displays "This page contains the following errors. error on line 13 at column 53: expected '#' or '[a-zA-z]' but got '&'.
So I examined the html source that it was trying to load, this is line 13:
As the error states, there is an & on line 13, column 53.Code:<script type="text/javascript">window.Bootloader && Bootloader.done(["6toYh","+sH1I","8E\/OP"]);</script>
I don't own the html source, I am just displaying it in a webview (So i cannot modify the html).
The interesting part is that the QWebview will display the new webpage on the Qt Simulator, the error only appears on an N8 device (not tested other devices).
If I set
I can reproduce the error on the simulator.Code:ui->webView->settings()->setAttribute(QWebSettings::JavascriptEnabled, FALSE);
However, setting this value to TRUE, does not fix the error on the device.
Have I missed some setting somewhere? Or Is there some clever way of handling this situation?
I'm using Qt 4.7.3

Reply With Quote

