RT#81652, update tests to pass with Perl 5.18

This was done by converting the tests from using Regex checks (which
expects tag attributes in a particular ordre) to using a HTML parser to
review the results. Then I can test them as hash members, where order
doesn't matter.

There are no new dependencies here, as HTML::TokeParser is part of
the HTML::Parser distribution.
Updates to prepare for 2.11 release, with Perl 5.18 compatibility