in reply to Re^5: Testing generated HTML
in thread [Solved] Testing generated HTML

My post was just pointing out that you don't have to chose between HTML5 and XHTML - if you use polyglot (which is really just HTML5 with a few simple tweaks) you get valid HTML5 which can also be tested using all those useful XML modules. Anyone wanting to parse the pages you produce will also have an easier job.

I've written a couple of Dancer2 / Template::Toolkit applications which output Polyglot HTML5 , and it's not really much more work than straight HTML; once you take into account how much more straightforward it is to write tests for XML rather than HTML, it will probably save you time in the long run

I take your point about the tail wagging the dog, but I just think Polyglot produces 'better' output than straight HTML in any case (others may disagree) - the fact that writing tests becomes a lot easier is a consequence of this, rather than the main reason for changing.