Re: observing HTML rules when converting to XML

* 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>
>elements".
>
>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