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

Re: Missing blank in a text node after validation using JTIDY

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sat, 02 Mar 2002 00:32:15 +0100
To: "Nicolas Martin" <nicolas.martin@laposte.net>
Cc: <html-tidy@w3.org>
Message-ID: <md9q7uk3vlgq22je8ssevtaanscbqh8v4u@4ax.com>
* Nicolas Martin wrote:
>I am new in this list and i use JTidy API (the java version of tidy). I noticed
>a bug, and i don't know if someone got the same problem. When for instance
>i have the following HTML code :
>
>....
><tr>
>  <td> 
>  <font>This is a</font>
>  <font> text</font>
>  
>  </td>
>  <td> test 3 </td>
>  <td> test 2 </td>
> </tr>
>....

Latest HTML Tidy (http://tidy.sf.net) will give you

  <tr>
  <td><font>This is a</font> <font>text</font></td>
  <td>test 3</td>
  <td>test 2</td>
  </tr>

>My problem is that inside the seconde <font> node the text
>start with a blank which disappear after the validation.
>
>If anyone know how i could fix the pb..?

You are strongly encouraged to avoid leading and trailing white space in
inline elements. Anyway, Tidy's behaivour should only cause problems, if
your second font element (you are strongly encouraged to avoid font
elements at all, by the way) has a right-to-left directionality (as I've
noted before...) Why is Tidy's behaivour a problem to you?

regards,
Received on Friday, 1 March 2002 18:33:48 GMT

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