[twill] tidy_ok is nice, but I need something more strict

William K. Volkman wkvsf at users.sourceforge.net
Wed Dec 26 14:07:13 PST 2007

On Mon, 2007-12-24 at 14:13, Matthew Wilson wrote:
> tidy_ok seems to let a lot of unholy html pass through.  For example, I
> would love to have my twill tests catch instances of img tags lacking
> alt attributes.
> Is it possible to run some other, much more strict XHTML parser over the
> pages?

IIRC img tags with alt attributes is not strictly an XHTML
requirement.  It is part of the accessibility initiative.
It has been awhile; however, I recall using tidy to clean
up just such constructs.  Perhaps there is a way to add
the "-access" switch to the tidy call from twill.


More information about the twill mailing list