W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2006

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

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 02 Oct 2006 10:10:29 +0200
To: Fred.Bone@dial.pipex.com
Cc: html-tidy@w3.org
Message-ID: <a6i1i2dv3ei72tnn27m2c0328smstf4ouj@hive.bjoern.hoehrmann.de>

* 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


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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:56 UTC