Debian Bug report logs - #365971
doesn't support generating valid xhml

version graph

Package: libhtml-scrubber-perl; Maintainer for libhtml-scrubber-perl is Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>; Source for libhtml-scrubber-perl is src:libhtml-scrubber-perl.

Reported by: Joey Hess <joeyh@debian.org>

Date: Thu, 4 May 2006 06:03:02 UTC

Severity: normal

Tags: upstream

Found in version libhtml-scrubber-perl/0.08-2

Forwarded to http://rt.cpan.org/Public/Bug/Display.html?id=19063

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Stephen Quinney <stephen@jadevine.org.uk>:
Bug#365971; Package libhtml-scrubber-perl. Full text and rfc822 format available.

Acknowledgement sent to Joey Hess <joeyh@debian.org>:
New Bug report received and forwarded. Copy sent to Stephen Quinney <stephen@jadevine.org.uk>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Joey Hess <joeyh@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: doesn't support generating valid xhml
Date: Thu, 4 May 2006 01:57:34 -0400
[Message part 1 (text/plain, inline)]
Package: libhtml-scrubber-perl
Version: 0.08-2
Severity: normal

HTML::Scrubber seems to have no support for generating valid XHTML 1.0
Strict. It converts invoming valid <hr /> to <hr>. Probably the best way
to fix this would be to add a config option that turns on using <hr />
and similar.

-- 
see shy jo
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Stephen Quinney <stephen@jadevine.org.uk>:
Bug#365971; Package libhtml-scrubber-perl. Full text and rfc822 format available.

Acknowledgement sent to "Stephen Quinney" <sjq@debian.org>:
Extra info received and forwarded to list. Copy sent to Stephen Quinney <stephen@jadevine.org.uk>. Full text and rfc822 format available.

Message #10 received at 365971@bugs.debian.org (full text, mbox):

From: "Stephen Quinney" <sjq@debian.org>
To: "Joey Hess" <joeyh@debian.org>, 365971@bugs.debian.org
Subject: Re: Bug#365971: doesn't support generating valid xhml
Date: Thu, 4 May 2006 08:59:45 +0100
On 04/05/06, Joey Hess <joeyh@debian.org> wrote:
>
> HTML::Scrubber seems to have no support for generating valid XHTML 1.0
> Strict. It converts invoming valid <hr /> to <hr>. Probably the best way
> to fix this would be to add a config option that turns on using <hr />
> and similar.

Thanks for the bug report, I have filed it in the upstream bug
reporting system (rt.cpan.org), see this link for details:

http://rt.cpan.org/Public/Bug/Display.html?id=19063

Cheers,

Stephen Quinney



Information forwarded to debian-bugs-dist@lists.debian.org, Stephen Quinney <stephen@jadevine.org.uk>:
Bug#365971; Package libhtml-scrubber-perl. Full text and rfc822 format available.

Acknowledgement sent to Joey Hess <joeyh@debian.org>:
Extra info received and forwarded to list. Copy sent to Stephen Quinney <stephen@jadevine.org.uk>. Full text and rfc822 format available.

Message #15 received at 365971@bugs.debian.org (full text, mbox):

From: Joey Hess <joeyh@debian.org>
To: 365971@bugs.debian.org
Subject: hmm, seems / does work..
Date: Thu, 25 May 2006 18:03:14 -0400
[Message part 1 (text/plain, inline)]
Adding / to the list of allowed attributes does seem to do what I want,
at least in ikiwiki, as suggested in the upstream BTS. Here's the code I
use now, which seems to work:

        eval q{use HTML::Scrubber};
        # Lists based on http://feedparser.org/docs/html-sanitization.html
        $_scrubber = HTML::Scrubber->new(
                allow => [qw{
                        a abbr acronym address area b big blockquote br
                        button caption center cite code col colgroup dd del
                        dfn dir div dl dt em fieldset font form h1 h2 h3 h4
                        h5 h6 hr i img input ins kbd label legend li map
                        menu ol optgroup option p pre q s samp select small
                        span strike strong sub sup table tbody td textarea
                        tfoot th thead tr tt u ul var
                }],
                default => [undef, { map { $_ => 1 } qw{
                        abbr accept accept-charset accesskey action
                        align alt axis border cellpadding cellspacing
                        char charoff charset checked cite class
                        clear cols colspan color compact coords
                        datetime dir disabled enctype for frame
                        headers height href hreflang hspace id ismap
                        label lang longdesc maxlength media method
                        multiple name nohref noshade nowrap prompt
                        readonly rel rev rows rowspan rules scope
                        selected shape size span src start summary
                        tabindex target title type usemap valign
                        value vspace width
                }, "/" => 1, # emit proper <hr /> XHTML
                }],
        );

I must say that this module has the worst docs of any perl module I have
ever used.

-- 
see shy jo
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>:
Bug#365971; Package libhtml-scrubber-perl. Full text and rfc822 format available.

Acknowledgement sent to 20060525220314.GA14692@kitenet.net:
Extra info received and forwarded to list. Copy sent to Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>. Full text and rfc822 format available.

Message #20 received at 365971@bugs.debian.org (full text, mbox):

From: Gunnar Wolf <gwolf@gwolf.org>
To: 365971@bugs.debian.org, control@bugs.debian.org
Subject: Works well enough?
Date: Fri, 8 Feb 2008 11:13:26 -0600
tag 365971 + upstream
thanks

Hi, 

AFAICT, this fixes the problem - Probably it (both the fix and the
module itself ;-) ) should be documented, but besides that - Can this
bug be closed? (it's only matter of understanding the module to get it
to work properly)

There are several tickets in the CPAN RT already concerning said
issues. 

Greetings,

-- 
Gunnar Wolf - gwolf@gwolf.org - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF




Tags added: upstream Request was from Gunnar Wolf <gwolf@gwolf.org> to control@bugs.debian.org. (Fri, 08 Feb 2008 17:18:03 GMT) Full text and rfc822 format available.

Noted your statement that Bug has been forwarded to http://rt.cpan.org/Public/Bug/Display.html?id=19063. Request was from Ansgar Burchardt <ansgar@2008.43-1.org> to control@bugs.debian.org. (Sat, 11 Oct 2008 22:42:04 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 15:11:32 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.