- From: April <awhite@mail.rosecom.ca>
- Date: Mon, 04 Jun 2001 07:15:37 -0400
- 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 UTC