RE: Promotion of XHTML

Also, if <br /> in HTML was equivalent to <br>&gt;, then that would seem to
indicate that every web browser out there is broken, and should display this
as a line break followed by the greater than symbol.  I don't know what
logic you are using to determine that <br /> = <br>&gt;, but it seems flawed
to me.


-----Original Message-----
From: Boris Zbarsky [mailto:bzbarsky@MIT.EDU]
Sent: Monday, December 30, 2002 1:52 PM
To: Peter Foti (PeterF)
Subject: Re: Promotion of XHTML


> WHAT?!!  You are now saying that there is no such thing as an
> HTML-compatible XHTML 1.0 document?  Am I reading that right?
> 
> So are you saying that <br /> is not HTML-compatible?  It's an empty
> element, as it *could* be represented in XML, yet is also 
HTML-compatible.

<br /> in XML is equivalent to <br></br>

<br /> in HTML is equivalent to <br>&gt;, which is equivalent 
to the XML markup
<br></br>&gt;

I cannot see how those two could be called compatible...

Boris
-- 
In the force if Yoda's so strong, construct a sentence
with words in the proper order then why can't he?

Received on Monday, 30 December 2002 14:13:36 UTC