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

Bjoern Hoehrmann <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
* 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:[email protected] · 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.