Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: CGI.pm and XHTML

by mirod (Canon)
on Mar 28, 2001 at 17:16 UTC ( #67809=note: print w/replies, xml ) Need Help??


in reply to CGI.pm and XHTML

According to XHTML it should be <br /> or <br></br> and it is with use CGI. The problem seems to be with CGI::Pretty. I guess you found a bug there.

Replies are listed 'Best First'.
(Ovid) Re(2): CGI.pm and XHTML
by Ovid (Cardinal) on Mar 28, 2001 at 17:59 UTC
    Yup, it's a bug with CGI::Pretty. Sigh. There was a bug in $CGI::VERSION 2.46 with CGI::Pretty that was stripping the attributes of HTML tags. Yet another reason to avoid CGI::Pretty.

    Thanks!

    Cheers,
    Ovid

    Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Re: CGI.pm and XHTML
by kal (Hermit) on Mar 28, 2001 at 17:47 UTC

    It may be a bug - in my copy, the lines:

    if ($linebreak) { $break = $XHTML ? "<br />" : "<br>"; }

    .. appear, so they know about this already, it's in version 2.752 (what I got here). Perhaps you need to upgrade CGI.pm?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://67809]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2023-12-06 03:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (29 votes). Check out past polls.

    Notices?