Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: CGI.pm and XHTML

by mirod (Canon)
on Mar 28, 2001 at 17:16 UTC ( [id://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 taking refuge in the Monastery: (2)
As of 2025-05-17 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.