Re: Tidy strips <center> tags within <p> tags

* Fred Bone wrote:
>I suppose it depends on your (or Tidy's) interpretation of "within".
>In my view, what
> <p>aaaa<center>bbbb</center>cccc</p>
>really means is
> <p>aaaa</p><center>bbbb</center><p>cccc</p>

In HTML it means

  <p>aaaa</p><center>bbbb</center>cccc</p>

which is illformed. Try using your example with a CSS rule p{color:red}
in your favourite browser, only the "aaaa" will be rendered in red.

>Provided, of course, that you haven't told it the input is (X)HTML 
>Strict, in which context <center> has no meaning at all.

By that interpretation, your example above has no meaning either.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Monday, 2 October 2006 08:10:43 UTC