Subject: | some unclosed tags cause unexpected nesting |
In 3.12 (with Perl 5.6.0 under OS X), I'm seeing certain tags causing nesting instead of implicit closes. Here's an example:
----startofcode
use HTML::TreeBuilder;
my $tree = new HTML::TreeBuilder;
$tree->parse_file(\*DATA);
$tree->dump;
$tree->delete;
__DATA__
<ul>
<li>one
<li>two
</ul>
<dl>
<dt>foo
<dd>frotz
<dt>bar
<dd>baratz
</dl>
----endofcode
In this case, the second <li> item is being created in a *new* implicit <ul> under the first one. Similarly, the <dt>/<dd> is being nested.
This has worked fine in versions before 3.11.
I'm happy to debug further if you need it.
john