Re: HTML5 Support?

* wayne wrote:
>I am attempting to use your product with html 5 documents and believe
>tidy does not get it right.  Are there plans to update tidy to include
>the html5 specifications?

Well, I am interested in adding some "HTML5" support. I would need a ma-
chine readable list of all allowed elements and which attributes they
may have ("a@href, a@title, ...") and for all new elements the table in
http://tidy.cvs.sourceforge.net/viewvc/tidy/tidy/src/tags.c?view=markup
would have to be filled out ("<time> is like <abbr>" style information
would be a good first order approximation, but for some elements this is
not quite that simple, so anyone compiling this data would have to point
out problems like "<track> is like <br> but not allowed everywhere that
<br> is allowed").

This data would then be used to update the table above and others like
it. Then I suppose some doctype-related things need to be updated so you
get your "HTML5 doctype" out. Some of element and attribute check sub-
routines might have to be updated so you don't get false errors due to
using new features. That would roughly give you "HTML5" support in the
"Conforming documents are accepted and you don't get many wrong errors
and they come out roughly as you put them in" sense, which is about all
you can expect. I could make the attribute list myself and am happy to
use machine-readable data to update the tables, but I am not going to
make the needed "<time> is like <abbr>" documentation.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Thursday, 15 September 2011 21:30:33 UTC