Add tidy support to HTML dom containers