when using currentFrame()->toHtml (); All META Elements missing slashes if DOCTYPE is set to Strict or Transitional.
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?
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
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?