Skip Menu |

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

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

People
Owner: Jeff.Fearn [...] gmail.com
Requestors: john.holland.robinson [...] gmail.com
Cc:
AdminCc:

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



Subject: </p> w/o a previous <p> ends the treebuild...
Date: Tue, 16 Jan 2007 21:35:36 -0600
To: bug-HTML-Tree [...] rt.cpan.org
From: "John Robinson" <john.holland.robinson [...] gmail.com>

Message body is not shown because sender requested not to inline it.

The print doesnt show the rest of the table... it stops right @ the </p>... i remove the </p> and it builds the tree properly. The </p> doesnt have a begining, I'm guessing the treebuilder freaks when it sees the end tag w/o a begining. Thanks jhr ----html---- <td width="70%" valign=top style='width:70.0%;padding:.75pt .75pt .75pt .75pt'><font face="Arial, Helvetica, sans-serif" size="2">Internal Medicine,<br> Medical Oncology,<br> </p> Clinical Pharmacology</font></td> ---- perl ---- if ( $industry_table = ($tree->look_down('_tag', 'table'))[3] ) { print $industry_table->as_text."\n"; } else { } Show quoted text
--- system info --- Originally Treebuilder version 3.13, but later 3.23 This is perl, v5.8.6 built for i386-freebsd-64int (with 2 registered patches, see perl -V for more detail) FreeBSD [hostname] 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Hi, I can't duplicate this behaviour. perl -e 'use HTML::TreeBuilder;my $tree = HTML::TreeBuilder->new(); $tree->parse(qq|<table><tr><td width="70%" valign=top style="width:70.0%;padding:.75pt .75pt .75pt .75pt"><font face="Arial, Helvetica, sans-serif" size="2">Internal Medicine,<br>Medical Oncology,<br> </p>Clinical Pharmacology</font></td></tr></table>|); print $tree->look_down('_tag', 'table')->as_text."\n";' Internal Medicine,Medical Oncology, Clinical Pharmacology
Subject: Re: [rt.cpan.org #24407] </p> w/o a previous <p> ends the treebuild...
Date: Sat, 24 Apr 2010 08:46:29 -0500
To: bug-HTML-Tree [...] rt.cpan.org
From: John Robinson <john.holland.robinson [...] gmail.com>
Jeff, As someone who has seen tickets several years old. Let me just say: close this ticket. I wouldn't even be able to replicate what caused the original ticket. :) This computer got upgraded to a Debian box, and this perl project was a 1 time use. Good luck and Best wishes, John On Sat, Apr 24, 2010 at 4:48 AM, Jeff Fearn via RT < bug-HTML-Tree@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=24407 > > > Hi, I can't duplicate this behaviour. > > perl -e 'use HTML::TreeBuilder;my $tree = HTML::TreeBuilder->new(); > $tree->parse(qq|<table><tr><td width="70%" valign=top > style="width:70.0%;padding:.75pt .75pt .75pt .75pt"><font face="Arial, > Helvetica, sans-serif" size="2">Internal Medicine,<br>Medical > Oncology,<br> </p>Clinical Pharmacology</font></td></tr></table>|); > print $tree->look_down('_tag', 'table')->as_text."\n";' > > Internal Medicine,Medical Oncology, Clinical Pharmacology > >
Dear John, resolved! ;)