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

JTidy bug, adding extra <font> tags around text

From: Ivan Gum <igum@digitalimpact.com>
Date: Thu, 13 Dec 2001 16:52:06 -0800
Message-ID: <E1932DB448A64D4898D773691B7CC7AED63B1F@diexgcu1.digitalimpact.com>
To: "'html-tidy@w3.org'" <html-tidy@w3.org>
Why does tidy add an extra <font> tag around the text, converting...

<font><newtag param="value">some bogus text</newtag></font>

to...

<FONT><NEWTAG param="value"><FONT>some bogus
text</FONT></NEWTAG></FONT>

"newtag" is configured as a new-inline-tag.

If I hack it by specifying "font" as either a new pre-tag or a new
block-level tag, I get what I desire:

<FONT><NEWTAG param="value">some bogus text</NEWTAG></FONT>

But it just doesn't sound right to do that hack. Anyone know why the
behavior and if there's any workaround?  I have jtidyr6 based on tidy
Aug4,2000. Thanks.
Received on Thursday, 13 December 2001 19:52:51 GMT

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