Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
>  On Sun, 08 Jul 2007 22:23:20 +0200, Jan Danielsson wrote:
> 
> >    The problem is that this generates the following code:
> > 
> >           <tr>
> >             <th>Description</th>
> >             <td>
> >               <textarea cols="64" name="desc" rows="8" />
> >             </td>
> >           </tr>
> > 
> >    Firefox is very unhappy about the textarea not having separate
> > opening and a closing tags. i.e. I need this:
> > 
> >               <textarea cols="64" name="desc" rows="8"></textarea>
> > 
> >    I understand the opitmization ElementTree is performing; but it seems
> > there are cases when it is not the proper thing to do. Is it possible to
> >  force ElementTree to output the XHTML code I need it to?
> 
>  Then either Firefox is broken or you don't declare your XHTML properly and
>  Firefox thinks it's HTML.

I suspect the former - we noticed exactly the same thing (can't
remember which tags we were having problems with), using the
declaration :-

  <?xml version="1.0" encoding="iso-8859-1"?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

I haven't tested this again recently though.

-- 
Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to