Created attachment 362580 [details] test script exhibiting bug Description of problem: HTML::Element::as_XML() has a bug where tags added to empty_element_map but which contain data are missing their close tag when generating XML. Version-Release number of selected component (if applicable): 3.23-4 How reproducible: Always Steps to Reproduce: 1. Run attached script Actual results: Not mapped to empty element (correct) <a href="http://example.com/"></a> Mapped to empty element, no extra content (correct) <a href="http://example.com/" /> Mapped to empty element, extra content (missing close tag) <a href="http://example.com/">Extra content Expected results: Not mapped to empty element (correct) <a href="http://example.com/"></a> Mapped to empty element, no extra content (correct) <a href="http://example.com/" /> Mapped to empty element, extra content (correct) <a href="http://example.com/">Extra content</a> Additional info: I opened an upstream bug with a patch https://rt.cpan.org/Ticket/Display.html?id=49932 however it may take a while for a new version to come out. Since HTML::Element is the base class for XML::Element this bug affects all XML systems where tags can be optionally empty and people wish to use the short circuit form for the empty tags.
Created attachment 362581 [details] fix that bug!
Updates are building for this now, thanks for the patch.
perl-HTML-Tree-3.23-9.el4 has been submitted as an update for Fedora EPEL 4. http://admin.fedoraproject.org/updates/perl-HTML-Tree-3.23-9.el4
perl-HTML-Tree-3.23-9.el5 has been submitted as an update for Fedora EPEL 5. http://admin.fedoraproject.org/updates/perl-HTML-Tree-3.23-9.el5
perl-HTML-Tree-3.23-9.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/perl-HTML-Tree-3.23-9.fc10
perl-HTML-Tree-3.23-9.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/perl-HTML-Tree-3.23-9.fc11
perl-HTML-Tree-3.23-9.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
perl-HTML-Tree-3.23-9.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.
perl-HTML-Tree-3.23-9.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
perl-HTML-Tree-3.23-9.el4 has been pushed to the Fedora EPEL 4 stable repository. If problems still persist, please make note of it in this bug report.
Eftimios TSIGROS (BANNER)!!!!!!!!!