- From: Dave Raggett <dsr@w3.org>
- Date: Sun, 17 Sep 2000 13:35:29 +0100 (GMT Daylight Time)
- To: Najib TOUNSI <tounsi@emi.ac.ma>
- cc: html-tidy@w3.org
On Mon, 11 Sep 2000, Najib TOUNSI wrote: > Hello every one, > > I hope not to disturb you too much. > > What is wrong with this example, which simply write my name: > > <html> > <body> > <I><FONT SIZE="5">Najib T</FONT></I><FONT SIZE="5">O</FONT><I><FONT SIZE="5">UNSI</FONT></I> > </body> > </html> > > view > > The problem is after passing tidy -c, which give this > > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> > <html> > <head> > <meta name="generator" content="HTML Tidy, see www.w3.org"> > <title></title> > <style type="text/css"> > span.c2 {font-size: 150%} > i.c1 {font-size: 150%} > </style> > </head> > <body> > <i class="c1">Najib T</i><span class="c2">O</span><i class= > "c1">UNSI</i> > </body> > </html> > > view, which is not what I expect. Tidy has moved the font information into a style on the i element and replaced the middle font element with a span element. This is as expected. If there was an enclosing <p>, then in principle, tidy might have been able to move the font info to that since you specified the same font size throughout. However, that would involve more complexity than Tidy can deal with today. Regards, -- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett tel/fax: +44 122 578 3011 (or 2521) +44 778 532 0444 (mobile) World Wide Web Consortium (on assignment from HP Labs)
Received on Sunday, 17 September 2000 08:35:38 UTC