W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2001

xml versus xhtml

From: Paul <valen@nic.com>
Date: Sun, 2 Sep 2001 17:35:41 -0400
Message-ID: <001301c133f7$37f61f60$4f3c8dcc@8g69901>
To: <html-tidy@w3.org>
Hi All,

I am beginning to believe that when there is a discrepancy between me and
Tidy, that Tidy is usually right.  That being said, I'll ask anyway:

When I tidy -

<h1>start of  heading
  <p>paragraph within</p>
        end of heading

tidy returns

<h1>start of heading</h1>
<p>paragraph within</p>
<p>end of heading</p>

This seems consistent with earlier observed tidy behavior, namely that
xhtml1.0 dtd disallows <p> within <h1>. So tidy closes the <h1>, etc.  But I
didn't specify output-xhtml.  I specified output-xml.  Isn't the input to
tidy valid h1 'xml'?  If so, why does tidy seem to force compliance with the
xhtml dtd?

Thanks for your help.


Received on Sunday, 2 September 2001 17:30:44 UTC

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