Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

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

X Report information
Id: 27344
Status: resolved
Left: 0 min
Priority: 0/0
Queue: Pod-POM-Web

Owner: Nobody
Requestors: remi.pauchet [...] netasq.com
Cc:
AdminCc:

Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



X History Display mode: Brief headersFull headers
#   Wed May 30 11:59:15 2007 remi.pauchet[...]netasq.com - Ticket created  
Subject: css pb with firefox and builtin webserver
Date: Wed, 30 May 2007 17:58:31 +0200
To: bug-pod-pom-web[...]rt.cpan.org
From: Rémi Pauchet <remi.pauchet[...]netasq.com>
[text/plain 1k]
Hi

I've just installed Pod::POM::Web and i get problem with firefox and the
css/js display with the builtin webserver.

The pages were displayed whithout the style (Syntax coloring, etc...)
and without the clickable menu.

I tried firefox 1.5, firefox 2.0, with always this problem and at last I
try IE7 and it works !

With firebug I saw that the css was downloaded but not used.

After some tests I manage to temporarily fix it :
I edit the Web.pm and comment the following line in send_content sub :

$mime_type .= "; charset=$charset" if $charset;

which add the header charset ascii. Without the charset header, firefox
loads and display styles.

There seems that firefox doesn't like the ascii charset for stylesheets.

I also have a question / feature request :

I want to use Pod::POM::Web to display help of my app's modules and not
the system perl help.
At first, added my libraries path to @INC and I can browse in the
modules node.
Is it possible to generate pages and a reduce index for a specific paths
whitout taking @INC ?

Thanks for your support.

--
Rémi Pauchet



#   Wed May 30 15:36:10 2007 DAMI - Correspondence added  
[text/plain 1.2k]
> There seems that firefox doesn't like the ascii charset for
> stylesheets.

Thanks a lot for this bug analysis. Now I understand why chromatic did
not see the DHTML features of Pod::POM::Web when he wrote his report
(http://www.oreillynet.com/onlamp/blog/2007/05/cpan_module_review_podpo
mweb.html)

This was a regression bug introduced in v 1.05. Who would have guessed
that a Content-type: text/css with charset=ascii would be rejected by
Firefox ? But shame on me, it's true that I did not re-test v1.05 on
Firefox. Fixed now in v1.06, just uploaded to CPAN.

> I also have a question / feature request :
>
> I want to use Pod::POM::Web to display help of my app's
> modules and not the system perl help.
> At first, added my libraries path to @INC and I can browse in
> the modules node.
> Is it possible to generate pages and a reduce index for a
> specific paths whitout taking @INC ?

Good idea, I'll add an option for specifying the dirs (different from
@INC). First I thought it would be totally trivial and wanted to add
it in v1.06, but then I realised that the application relies on some
standard perl pages (like perldoc) for generating the TOC, so it needs
a little bit more thinking. Wait for the next relase.

#   Wed May 30 15:36:13 2007 RT_System - Status changed from 'new' to 'open'  
#   Wed May 30 15:36:16 2007 DAMI - Status changed from 'open' to 'resolved'