Skip Menu |
 

This queue is for tickets about the HTML-Tree CPAN distribution.

Report information
The Basics
Id: 1369
Status: resolved
Priority: 0/
Queue: HTML-Tree

People
Owner: Nobody in particular
Requestors: johnl [...] johnlabovitz.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 3.12
Fixed in: (no value)



Subject: some unclosed tags cause unexpected nesting
Download (untitled) / with headers
text/plain 625b
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
Download (untitled) / with headers
text/plain 464b
Can't reproduce with 3.18 and up. Please resubmit with a test case if you are still having this issue. Output from Perl 5.8.4 / HTML::Tree 3:18: <html> @0 (IMPLICIT) <head> @0.0 (IMPLICIT) <body> @0.1 (IMPLICIT) <ul> @0.1.0 <li> @0.1.0.0 "one " <li> @0.1.0.1 "two " <dl> @0.1.1 <dt> @0.1.1.0 "foo " <dd> @0.1.1.1 "frotz " <dt> @0.1.1.2 "bar " <dd> @0.1.1.3 "baratz "


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.