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

Re: HTML Tidy Issue (fwd)

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 31 Dec 2001 03:10:44 +0100
To: platter@earthlink.net
Cc: html-tidy@w3.org
Message-ID: <s2iv2ugglv4258jvkueg7muqnttnsplcvo@4ax.com>
* John Siebenthaler wrote:
>My version of HTML Tidy always prints out a warning when fed the
>first example XHTML 1.0 document from the XHTML 1.0 working draft,
>second edition.  The console session is appended to the end of this
>Is this an issue with the Tidy program, or with the sample document
>in the XHTML 1.0 draft?

This is a known issue in HTML Tidy and it has not been fixed up to now.
This happens in attrs.c:CheckAttribute(...). The if() construct needs an
additional check for lexer->isvoyager but this will currently not help,
since lexer->isvoyager is false at that point. HTML Tidy only uses the
xmlns Attribute to determine XHTMLness of the input file, not the
document type declaration and the xmlns attribute has not been
processed, since Tidy processes the attributes in reverse order. We need
to improve the lexer->isvoyager checks. To do this, I would need some
code that splits up the document type declaration in HTML and XHTML into
all relevant parts (FPI, system identifier, internal subset, etc.) I
need this for other things also...
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
Received on Sunday, 30 December 2001 21:11:48 UTC

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