W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2001

Re: tidycom 1.2.5 memtomem broken

From: April <awhite@mail.rosecom.ca>
Date: Mon, 04 Jun 2001 07:15:37 -0400
Message-ID: <3B1B6DD8.5A4073FB@mail.rosecom.ca>
To: tidy <html-tidy@w3.org>
André Blavier wrote:

  There are 2 hypothesis:
  - tidy couldn't generate a valid output, due to serious errors in the
source
  string
  - the TidyCOM TidyMemToMem() function is still flawed (which is not
  unlikely)

here is a sample document:

  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  <HTML>
  <HEAD>
    <META http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
    <META NAME="Author" CONTENT="AWhite, Delta Development">
    <META NAME="Generator" CONTENT="Hyperion v1.0">
    <TITLE>Title</TITLE>
  <STYLE type="text/css">
  </STYLE>
  </HEAD>
  <BODY>

  This is a simple document!

  </BODY>
  </HTML>


I use in VB:   results = Tidy.TidyMemToMem(rtfPage.Text)

If there are no errors (ie. Tidy.TotalWarnings + Tidy.TotalErrors == 0)
then I optionally create a new document with the
results.  If there are errors, I either create a new document with the
results, or load the warnings & errors into a listbox in
my editor so the user can go through them iondividually.  In either case
where I create a new document, there is nothing there!

I corrupted the above example (ie. changed </STYLE> to </STLE>), and the
result string was still empty.

The previous version worked satisfactorily.

Hope this is helpful

April
Received on Monday, 4 June 2001 07:16:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:45 GMT