Bug 35493 - QWebFrame->toHtml() didn't receive 100% XHTML Strict or Transitional Source
Summary: QWebFrame->toHtml() didn't receive 100% XHTML Strict or Transitional Source
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 412
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2010-02-28 03:48 PST by Jürgen Heinemann
Modified: 2010-03-05 10:51 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jürgen Heinemann 2010-02-28 03:48:53 PST
when using currentFrame()->toHtml ();
All META Elements missing slashes if DOCTYPE is set to Strict or Transitional.
Comment 1 Alexey Proskuryakov 2010-02-28 12:31:06 PST
The function is called "toHtml", so returns HTML, not XML. META elements are not supposed to be closed in HTML.

Why do you expect a different behavior?
Comment 2 Jürgen Heinemann 2010-03-01 00:05:21 PST
I'm writing a Application to Debug Web pages with QWebKit.
I need a Method/Function to view the Original Page Source – not QWebKit's generated html Source.

my project:
http://gitweb.hjcms.de/cgi-bin/index.cgi/xhtmldbg http://qtidy.hjcms.de/?ref=screenshots&lang=en
Comment 3 Benjamin Poulain 2010-03-05 10:51:55 PST
As Alexey said, that is the expected behavior of QWebFrame::toHtml().

I guess you can just write your own network access manager to intercept the data when the page is loaded?