> I tried to verify our generated html with jtidy, but it reports
too
> many "false alarms" (e.g. usage of % in td/th width).
>
> Anyone knows of a better verifier that can be used programmatically in
> unittests ?
The w3c validators are normally the best bet, but they tend to be
online tools rather than programmatic ones. They are open-source
though, so it may be possible to integrate into unit tests.
tried to look at them but they were a big mesh of perl code or worse so
not really "managable" :)
Regarding the jtidy warnings, they are normally fair points...
well, they have an outdated specific test for not using % in th and td
with attribute.
It is understood by all browsers today.
... and can be
fixed by moving to clean XHTML and CSS. I was contemplating the work
involved when reformatting the templates, and it wouldn't be too hard.
It'd be nice to move away from HTML4 and fully utilise CSS, but I
wasn't sure what your minimum requirements are.
Any HTML/CSS that looks good on IE, FireFox and Opera (and are simple to
generate) is my minimum requirements ;)
--
--
Max Rydahl Andersen
callto://max.rydahl.andersen
Hibernate
max(a)hibernate.org
http://hibernate.org
JBoss a division of Red Hat
max.andersen(a)jboss.com