[Webkit-unassigned] [Bug 51801] New: QWebView - eats xml header
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jan 2 03:23:04 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=51801
Summary: QWebView - eats xml header
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Windows 7
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit Qt
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: szyk100 at o2.pl
I have xhtml document like this:
QString gHtmlDefHeader = QString::fromUtf8("<?xml version=\"1.0\" encoding=\"utf-8\"?>"
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"
"<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"pl\">"
"<head></head><body>");
QString gHtmlDefFooter = QString::fromUtf8("</body></html>");
I write it to QWebView with command:
ui->mOutput->setHtml(gHtmlDefHeader + stylesForOutputList() + gHtmlDefFooter);
And I read it with command:
ui->mOutput->page()->mainFrame()->toHtml()
And suprisingly result does not have:
"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
So my direct page dumps are broken due to lack info about encoding!!!
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list