[thelist] PHP nl2br - <br> and <br />

Joel Canfield Joel at spinhead.com
Sun Mar 24 18:20:01 CST 2002


>I can't see why the W3 validator shouldn't validate <br /> as
>HTML 4.01, I know it's XML/XHTML, but isn't the whole point of
>it for backwards compatibility? If a browser rendering engine
>will see it as valid, why not the validator?
>

That's exactly the point; it's not valid according to the HTML spec, afaik.
If you want to use XML/XHTML you have to use the correct DTD. Can't be
backwards compatible unless you're already forward. Or something like that.

spinhead



More information about the thelist mailing list