W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2003

appending styles with underscore

From: Browning, Glen J ERDC-ITL-MS Contractor <Glen.J.Browning@erdc.usace.army.mil>
Date: Tue, 1 Jul 2003 15:02:02 -0500
Message-ID: <C1A0BFED297BD211B4010000BC113BA207B02DF2@wesmail03.wes.army.mil>
To: "'html-tidy@w3.org'" <html-tidy@w3.org>

Hello,

I have been using the tidy tool for about two months now, and I have
stumbled across a behavior that I do not understand.  

In the case of the following markup:

             <td bgcolor="#000000" colspan=4><p class="centBoldWhite"><i>
Some Text</i></p></td>

tidy generates this:

             <td bgcolor="#000000" colspan="4">
                <p class="centBoldWhite_c1">Some Text</p>
             </td>

Please note the "_c1" which has been appended to the existing class name
"centBoldWhite".  This refers to a new style definition which tidy creates
as follows:

               <style type="text/css">
                  p.c1 {font-style: italic}
               </style>

It appears to me that tidy is trying to append the contents of the new class
"c1" onto the existing class "centBoldWhite".  While this seems like a very
useful thing to be able to do, neither IE nor Netscape wil actually render
the new "centBoldWhite_c1" construct.  

Is this an error, or is the "_" really supposed to join classes?  If an
error, how does one assign multiple classes to an element?  If it is
supposed to work, can you suggest an explanation for why it doesn't work for
me?

Any help would be greatly appreciated.

Regards,

Glen Browning.
Received on Tuesday, 1 July 2003 16:04:16 UTC

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