W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2001

a patched version of JTidy

From: Jörg Prante <joerg@7val.com>
Date: Mon, 15 Jan 2001 14:21:54 -0500 (EST)
To: html-tidy@w3c.org
Message-Id: <0101152021540D.00713@jungle>

Hi,

JTidy is a great HTML to XHTML conversion tool. For cleaning real-world HTML, 
there is also the requirement to preserve most of the functionality of an 
existing HTML page according to existing browsers. Using JTidy for this 
purpose, I discovered that there are some problems with alignment and scripts 
which are moved out of tables, because JTidy is designed to be as close to 
the XHTML standard as possible, while currently available browsers are not. 

What to do? For our application, I decided to patch JTidy to do the following:

- preserve attribute align=center instead of style=text-align:center
- preserving scripts in tables to keep the original HTML functionality (e.g. 
the incredible document.write hacks of JavaScript fans).
- extract inline scripts and styles for later use (e.g. writing them to local 
repository)

If anybody is interested to get the patched version, feel free to send me a 
mail.

Jörg

-- 
Jörg Prante
Sevenval AG  (HRB 32757) ecommerce-base-technologies
D-50667 Köln . Alter Markt 36-42
Fon +49 221 65007-0 . Fax 4249891
www.sevenval.de . joerg@7val.com
Received on Tuesday, 16 January 2001 14:59:25 GMT

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