W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2003

Re: JTidy vs TagSoup

From: feng-shuo yu <fyu@uhl.uiowa.edu>
Date: Tue, 16 Dec 2003 09:27:15 -0600 (CST)
Message-ID: <1231.172.16.12.87.1071588435.squirrel@www.uhl.uiowa.edu>
To: <html-tidy@w3.org>

Recently, there is a need to use JTidy for some project and I sort of
updated (or I should say sync) the Java version with HTML version. The
output of

<BODY>
<table>
 <form action='pageA'>
  <tr><td><form>Input 1 Form 1: <input name='v'/></td><td>Input 2 Form 1:
  <input name='w'/>
</form>
<form action='pageB'>Input 1 Form 2: <input name='x'></td></tr>
  <tr><td>Input 2 Form 2: <input name='y'></td></tr>
</table>Input 3 Form 2:
<input name='z'>
</form>
</BODY>

will turn out to be
<html>
  <head>
    <meta name="generator" content="HTML Tidy, see www.w3.org" />
    <title>
      New Document
    </title>
  </head>
  <body>
    <form action='pageA'>
      <table>
        <tr>
          <td>
            <form>
              Input 1 Form 1: <input name='v' />
            </form>
          </td>
          <td>
            Input 2 Form 1: <input name='w' />
          </td>
          <td>
            <form action='pageB'>
              Input 1 Form 2: <input name='x' />
            </form>
          </td>
        </tr>
        <tr>
          <td>
            Input 2 Form 2: <input name='y' />
          </td>
        </tr>
      </table>
      Input 3 Form 2: <input name='z' />
    </form>
  </body>
</html>


If that is what you need, drop me a line and I can send you my latest
jar file.


Feng-Shuo Yu, Ph.D.
University of Iowa
Hygienic Lab
102 Oakdale Campus
Iowa City, IA 52242-5002
319/335-4852
Received on Tuesday, 16 December 2003 10:31:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:54 UTC