[Gambas-user] Class HtmlDocument

Hans Lehmann hans at ...3219...
Mon Jun 5 11:56:34 CEST 2017


Hello,

why creates the following source text:

Public Sub btnCreateHTMLDocument_Click()
   Dim hHtmlDocument As HtmlDocument

   hHtmlDocument = New HtmlDocument

*hHtmlDocument.Html5 = False**
*
   Print hHtmlDocument.ToString(True)
   hHtmlDocument.Save(Application.Path &/ "test.html", True)

End

this HTML5 document? I would have expected: strict HTML 1.0!

<!DOCTYPE html>
<html>
  <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <title>
   </title>
  </head>
  <body>
  </body>
</html>

Hans



More information about the User mailing list