[Bug 525587] New: Close tag missing in XML output of optionally empty tags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
        ReportedBy: jfearn@xxxxxxxxxx
         QAContact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: tcallawa@xxxxxxxxxx, fedora-perl-devel-list@xxxxxxxxxx
            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.

--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
Fedora-perl-devel-list mailing list
Fedora-perl-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-perl-devel-list

[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux