Re: HTML Tidy Issue (fwd)

* 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
>mail.
>
>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