Subject: | as_HTML change breaks existing code |
Date: | Sun, 27 Jun 2010 14:12:43 -0700 |
To: | bug-HTML-Tree [...] rt.cpan.org |
From: | Father Chrysostomos <sprout [...] cpan.org> |
HTML-Tree 3.23_1
I agree that it doesn’t make sense for as_HTML to tack "\n" on the end, but I also think it’s too late to change it now. The amount of code using HTML::Tree is huge (see http://deps.cpantesters.org/depended-on-by.pl?dist=HTML-Tree-3.23) and I know that at least some of it breaks with this change.
Maybe you could provide an option to omit the "\n". Or perhaps the version number could be increased to 4, and the new behaviour enabled by HTML::Element->new( -api => 4 ) or some such.