Commits

Toby Inkster committed d62be08 Draft

update test case to cope with changed defaults

  • Participants
  • Parent commits 4b0ede5

Comments (0)

Files changed (1)

 my $parser = XML::LibXML->new;
 my $dom    = $parser->parse_string($input);
 
-my $hwriter = HTML::HTML5::Writer->new(markup=>'html');
-my $xwriter = HTML::HTML5::Writer->new(markup=>'xhtml',doctype=>HTML::HTML5::Writer::DOCTYPE_XHTML1);
+my $hwriter = HTML::HTML5::Writer->new(
+	markup   => 'html',
+);
+my $xwriter = HTML::HTML5::Writer->new(
+	markup   => 'xhtml',
+	polyglot => 0,
+	doctype  => HTML::HTML5::Writer::DOCTYPE_XHTML1,
+);
 
 is($hwriter->document($dom), <<HTML, 'HTML output');
 <!DOCTYPE html><title>foo</title>