[Bug 525587] New: Close tag missing in XML output of optionally empty tags
bugzilla at redhat.com
bugzilla at redhat.com
Thu Sep 24 22:45:32 UTC 2009
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
Summary: Close tag missing in XML output of optionally empty tags
https://bugzilla.redhat.com/show_bug.cgi?id=525587
Summary: Close tag missing in XML output of optionally empty
tags
Product: Fedora
Version: 10
Platform: All
OS/Version: Linux
Status: NEW
Severity: medium
Priority: low
Component: perl-HTML-Tree
AssignedTo: tcallawa at redhat.com
ReportedBy: jfearn at redhat.com
QAContact: extras-qa at fedoraproject.org
CC: tcallawa at redhat.com, fedora-perl-devel-list at redhat.com
Blocks: 524832
Classification: Fedora
Target Release: ---
Created an attachment (id=362580)
--> (https://bugzilla.redhat.com/attachment.cgi?id=362580)
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.
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Fedora-perl-devel-list
mailing list