in reply to HTML::TreeBuilder, HTML::Element, as_XML()
IMnsHO, there is a bug in the _valid_name subroutine deep in HTML::Element. There should be
notreturn (0) unless ( $attr =~ /^$START_CHAR$NAME_CHAR*$/ );
return (0) unless ( $attr =~ /^$START_CHAR$NAME_CHAR+$/ );
The XML specs say that
Name ::= NameStartChar (NameChar)*
Jenda
Enoch was right!
Enjoy the last years of Rome.
In Section
Seekers of Perl Wisdom