[QWebView] MainFrame contains <br> in its Html when it's empty
-
After clearing content of QWebView from UI, a <br> tag is still in body of the html got by the following call:
@
webView->page()->mainFrame()->toHtml();
@The html string is:
@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body text="#000000"><br></body></html>
@Is there any way to get an empty body in such a case?