Question about Font Dropping

All,
 
I'm finding the following document run through Tidy (both 7/26 and 9/27
releases)  seems to drop the font tags regardless
of whether the configuration file setting Drop Font Tags is turned on or
off.  I have Convert to CSS turned on, but no CSS
is generated.
 
 
If I run it through Tidy once with Convert To CSS off though, the Font tag
is preserved. Then I can turn Convert to CSS
back on, run it once more, and the CSS is generated and replaces the font
perfectly. Here is the progression.
 
-- original document
 
 
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
   <head>
      <title>
         Untitled
      </title>
   </head>
   <body>
      <font color="Black">This is a test to see if HTML tidy will delete the
FONT tags even though
      "Drop Font Tags" is not seleted.</font>
   </body>
</html>
 
-- After running through Tidy with Convert to CSS on and Drop Font Tags
off... Notice the Font tag is dropped...
 
<!DOCTYPE html PUBLIC &quot;boo&quot;>
<html>
  <head>
    <title>
      Untitled
    </title>
  <body>
    This is a test to see if HTML tidy will delete the FONT tags even though
    &quot;Drop Font Tags&quot; is not seleted.
</html>
 
-- Now re-run the original document with Convert to CSS off:
<!DOCTYPE html PUBLIC &quot;boo&quot;>
<html>
  <head>
    <title>
      Untitled
    </title>
  <body>
    <font color="Black">This is a test to see if HTML tidy will delete the
FONT
    tags even though &quot;Drop Font Tags&quot; is not seleted.</font>
</html>
 
-- Now turn Convert to CSS on and run against previous doc.  Whoo hoo!
Styles are now generated correctly....
<!DOCTYPE html PUBLIC &quot;boo&quot;>
<html>
  <head>
    <title>
      Untitled
    </title>
<style type="text/css">
 span.c1 {color: Black}
</style>
  <body>
    <span class="c1">This is a test to see if HTML tidy will delete the FONT
    tags even though &quot;Drop Font Tags&quot; is not seleted.</span> 
</html>
 
 
Bug or feature?
 
 
Regards,
 
Darren
 
 

Received on Monday, 27 September 1999 17:01:44 UTC