delete t/bugs/void_element.t - invalid test
Matt S Trout [Thu, 24 Feb 2011 20:07:52 +0000 (20:07 +0000)]
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.

t/bugs/void_element.t [deleted file]

diff --git a/t/bugs/void_element.t b/t/bugs/void_element.t
deleted file mode 100644 (file)
index e04cacb..0000000
+++ /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 = <<END;
-<body>
-  <div class="main">
-    <$void class="void" src="moo">
-  </div>
-  <div class="main2">
-    <$void class="void" src="moo">
-  </div>
-</body>
-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^<div class="main">foo</div>^ );
-}
-
-done_testing;