Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the XML-RSS-LibXML CPAN distribution.

Report information
The Basics
Id: 35962
Status: open
Priority: 0/
Queue: XML-RSS-LibXML

People
Owner: Nobody in particular
Requestors: danieltwc [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.3002
Fixed in: (no value)



Subject: MagicElement output for enclosures is invalid
Download (untitled) / with headers
text/plain 642b
The recommended snippet for RSS enclosures produces invalid output: <enclosure length="1875860" url="http://www.noidearecords.com/mp3s/Fiya-TellYourChildren.mp3" type="audio/mpeg">1875860http://www.noidearecords.com/mp3s/Fiya-TellYourChildren.mp3audio/mpeg</enclosure> Note the content inside the enclosure tag. According to feedvalidator.org, this does not validate: * line 14, column 116: Unexpected Text (6 occurrences) [help] ... Children.mp3" type="audio/mpeg">1875860http://www.noidearecords... MagicElement's toString method dumps the attributes if no content is provided, which makes it impossible to create empty elements.
From: dmaki [...] cpan.org
Download (untitled) / with headers
text/plain 979b
On 土曜日 5月 17 03:01:23 2008, DANIELTWC wrote: Show quoted text
> The recommended snippet for RSS enclosures produces invalid output: > > <enclosure length="1875860" > url="http://www.noidearecords.com/mp3s/Fiya-TellYourChildren.mp3" > type="audio/mpeg">1875860http://www.noidearecords.com/mp3s/Fiya- > TellYourChildren.mp3audio/mpeg</enclosure> > > Note the content inside the enclosure tag. > > According to feedvalidator.org, this does not validate: > > * line 14, column 116: Unexpected Text (6 occurrences) [help] > ... Children.mp3" > type="audio/mpeg">1875860http://www.noidearecords... > > MagicElement's toString method dumps the attributes if no content is > provided, which makes it impossible to create empty elements.
Well, hmm. That part is trying to accomodate for things like <anno:reference resource="Aloha" /> which requires (by XML::RSS spec) that the "content" be Aloha. I don't have an immediate solution quite yet, but we might have to resort to tie()


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.