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?