Skip Menu |
 

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

Report information
The Basics
Id: 33523
Status: rejected
Priority: 0/
Queue: HTML-Tree

People
Owner: Jeff.Fearn [...] gmail.com
Requestors: grandpa [...] cpan.org
Cc:
AdminCc:

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



Subject: Incorrect parsing of nested inline elements
Download (untitled) / with headers
text/plain 433b
<p>normal <i>italic <b>bold italic</i> bold</b> normal</p> renders using as_HTML as: <p>normal <i>italic <b>bold italic</b></i> bold normal</p> after parsing with HTML::TreeBuilder (note the missing bold tags after the closing italic tag). Expected rendering is: <p>normal <i>italic <b>bold italic</b></i><b> bold</b> normal</p> or: <p>normal <i>italic <b>bold italic</i> bold</b> normal</p> The first rendering is preferred.
Subject: noname1.pl
Download noname1.pl
text/x-perl 244b
use strict; use warnings; use HTML::TreeBuilder; my $html = <<'HTML'; <p>normal <i>italic <b>bold italic</i> bold</b> normal</p> HTML my $root = HTML::TreeBuilder->new_from_content ($html); print $root->as_HTML(undef, ' ', {});
Download (untitled) / with headers
text/plain 108b
This source is invalidly marked up and the output is an acceptable compromise on dealing with invalid input.


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.