Re: Tidy and Gecko DOM

Bjoern Hoehrmann <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
* Fabrice Estiévenart wrote:
>I'dl like to configure Tidy so that its DOM representation of any HTML 
>document is exactly the same than the Gecko DOM 
>(http://developer.mozilla.org/en/docs/Gecko_DOM_Reference).

This is not generally possible. There are very many differences between
the two, in particular how they handle malformed HTML and white space;
presumably also how they handle attribute defaulting and some other de-
tails.

>For example, the Gecko DOM always includes a <tbody> tag between a 
><table> and its first <tr>.

I think we discussed at some point an option to have tbody elements
added, but currently there is no such option.
-- 
Björn Höhrmann · mailto:[email protected] · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.