<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>51801</bug_id>
          
          <creation_ts>2011-01-02 03:23:04 -0800</creation_ts>
          <short_desc>QWebView - eats xml header</short_desc>
          <delta_ts>2011-01-02 12:42:50 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>25206</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="szyk">szyk100</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>328388</commentid>
    <comment_count>0</comment_count>
    <who name="szyk">szyk100</who>
    <bug_when>2011-01-02 03:23:04 -0800</bug_when>
    <thetext>I have xhtml document like this:
QString gHtmlDefHeader = QString::fromUtf8(&quot;&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;utf-8\&quot;?&gt;&quot;
   &quot;&lt;!DOCTYPE html PUBLIC \&quot;-//W3C//DTD XHTML 1.1//EN\&quot; \&quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\&quot;&gt;&quot;
   &quot;&lt;html xmlns=\&quot;http://www.w3.org/1999/xhtml\&quot; xml:lang=\&quot;pl\&quot;&gt;&quot;
   &quot;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&quot;);
QString gHtmlDefFooter = QString::fromUtf8(&quot;&lt;/body&gt;&lt;/html&gt;&quot;);

I write it to QWebView with command:
ui-&gt;mOutput-&gt;setHtml(gHtmlDefHeader + stylesForOutputList() + gHtmlDefFooter);

And I read it with command:
ui-&gt;mOutput-&gt;page()-&gt;mainFrame()-&gt;toHtml()

And suprisingly result does not have:
&quot;&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;utf-8\&quot;?&gt;&quot;

So my direct page dumps are broken due to lack info about encoding!!!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>328418</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-01-02 12:42:50 -0800</bug_when>
    <thetext>This is not a QWebView bug.

*** This bug has been marked as a duplicate of bug 25206 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>