Bug 38005

Summary: [Qt] Unable to accept mime application/xml or text/xml
Product: WebKit Reporter: xzekecomax <xzekecomax>
Component: WebKit QtAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: hausmann, jedrzej.nowacki, xzekecomax
Priority: P2 Keywords: Qt
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   

xzekecomax@gmail.com
Reported 2010-04-22 13:48:19 PDT
I'm trying to render an xml file in QWebView. But it ignores it and renders errors about. QByteArray xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" "<?xml-stylesheet type=\"text/xslt\" href=\"default.xsl\">" "<car></car>"; _q->setContent(xml, QLatin1String("text/xml")); gives me this with qDebug() "<html xmlns="http://www.w3.org/1999/xhtml"> <body> <parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"> <h3>This page contains the following errors:</h3> <div style="font-family:monospace;font-size:12px">error on line 1 at column 102: Premature end of document.</div> <h3>Below is a rendering of the page up to the first error.</h3></parsererror><log begin="15:38:37" source=""/> </body> </html>" Which I do not know why it's trying to make it use xhtml when I'm trying to use XML ONLY. Does QtWebKit just dislike xml and xhtml?
Attachments
Jędrzej Nowacki
Comment 1 2010-06-16 04:50:36 PDT
(In reply to comment #0) "<?xml-stylesheet type=\"text/xslt\" href=\"default.xsl\">" This should be "<?xml-stylesheet type=\"text/xslt\" href=\"default.xsl\"?>".
Note You need to log in before you can comment on or make changes to this bug.