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

Re: observing HTML rules when converting to XML

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 05 Feb 2003 06:05:45 +0100
To: Piotr Banski <bansp@venus.ci.uw.edu.pl>
Cc: html-tidy@w3.org
Message-ID: <3e4689d3.2906158@smtp.bjoern.hoehrmann.de>

* Piotr Banski wrote:
>Converting an HTML file to XML, I noticed that Tidy relocates bits of
>markup trying to be HTML compliant. In the case at hand, it removes <meta>
>elements from within <td> elements and puts the former at the top of the
>output file. The comment is: "Warning: <meta> isn't allowed in <td>
>But it's XML I'm converting to, so why should it care about what HTML
>allows or not? Is this a bug, or a feature ( ;-) ), please?

It's a feature. Tidy tries to fix your invalid markup, that's what Tidy
is written for.
Received on Wednesday, 5 February 2003 00:05:20 UTC

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