[testlib] fix page validator selection. Closes #2869456
* use a validator that checks XML well-formness for the html5 doctype
(as a convenient side-effect, it does not choke on e.g. a canvas tag
like the HTMLParser does)
* use a DTD validator if there is an xml declaration
* else use the HTMLValidator
$(document).ready(function() {
module("air");
test("test 1", function() {
equals(2, 4);
});
test("test 2", function() {
equals('', '45');
equals('1024', '32');
});
module("able");
test("test 3", function() {
same(1, 1);
});
});