From: Matt S Trout Date: Thu, 24 Feb 2011 20:07:52 +0000 (+0000) Subject: delete t/bugs/void_element.t - invalid test X-Git-Tag: release_0.009005~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FHTML-Zoom.git;a=commitdiff_plain;h=3b699141cd75b2a07ff0512e2239e1a960901288 delete t/bugs/void_element.t - invalid test This test file attempts to verify behaviour where tags are not closed; while Zoom is designed primarily for HTML it specialises in XHTMLish HTML and as such I don't really see a need to make this work. If we were to support mangled HTML, we'd probably want to sit down and think seriously about what rules to provide - we could inject missing close tag events but I suspect that would require some bookkeeping to do sensibly. --- diff --git a/t/bugs/void_element.t b/t/bugs/void_element.t deleted file mode 100644 index e04cacb..0000000 --- a/t/bugs/void_element.t +++ /dev/null @@ -1,30 +0,0 @@ -use strictures 1; -use Test::More skip_all => 'TODO test'; -use HTML::Zoom; -use Test::Fatal; - -foreach my $void (qw/ area base br col command embed hr - img input keygen link meta param source wbr/) { - my $tmpla = < -
- <$void class="void" src="moo"> -
-
- <$void class="void" src="moo"> -
- -END - my $ra; - is( - exception { - $ra = HTML::Zoom->from_html( $tmpla ) - ->select('.main')->replace_content('foo')->to_html; - }, - undef, - "Zoom didn't die for $void" - ); - #like( $ra, qr^
foo
^ ); -} - -done_testing;