No, it's not difficult, but why should it really matter?  <br /> or <p /> or
<hr />, et. al. should all be compatible with older browsers.  Like I said,
it's perfectly valid SGML/XML.

The following html works flawlessly in NS 4.72:

<html>
<head><title></title></head>
<body>
This is a test.
<p />
This is another test.<br /><br /><br />
This is a final test.
<hr />
</body>
</html>

Regards,

Daniel Beckham


----- Original Message -----
From: "Thomas" <[EMAIL PROTECTED]>
Newsgroups: php.doc
To: <[EMAIL PROTECTED]>
Sent: Friday, April 20, 2001 3:32 AM
Subject: Re: [PHP-DOC] Could somebody pls. correct a typo?



> What I meant: Shouldn't HTML be changed to XHTML?
> And is it really that bad to write also a note like "Note: In versions
older than PHP 4.04 nl2br() returned a string with
> '<br>' inserted before all newlines." ?
>
> For behavior-changes like this: Please have in mind, that there are
millions scripts running out there, and not all of them
> running on the last PHP-version.
>
> > > Is there a consideration for eventually occuring "traps" for the
change to 4.05?
> > > I assume that it's not really funny if a user - or worse - ISP
upgrades, and than can't defend against complaints
> > > because of "buggy" scripts (which worked before).
> >
> > > Anil Madhavapeddy wrote:
> > >
> > > > > -> would somebody pls. correct <br/> to <br> in both lagunages?
> > > >
> > > > That's not a typo.  nl2br() uses XHTML <br /> tags since PHP-4.0.4
> >
> > Thats the correct syntax nowadays.
>
> Agreed.
>
> Regards,
> Thomas
>
>
>

Reply via email to