Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: marshall.cline [...] parashift.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 5.904-TRIAL



Subject: Infinite loop in HTML::Element method as_text() [version 3.23]
Date: Mon, 4 Mar 2013 12:47:07 -0600
To: bug-HTML-Tree [...] rt.cpan.org
From: Marshall Cline <marshall.cline [...] parashift.com>
Thanks for your excellent work. Bug location: in version 3.23, at line 1653 of HTML/Element.pm: while(@pile) { if(!defined($pile[0])) { # undef! *# no-op* } elsif(...blah...) { ...blah... } else { ...blah... } } Solution: change '*# no-op*' to '*shift @pile;*'. My best, M
I'm not quite sure how you managed to get undef into a tree, but you're right that it'll cause an infinite loop if you do. Your fix is applied in 5.904. Thanks for the report.