On Fri, May 14, 2010 at 4:57 PM, Hector Virgen <[email protected]> wrote:
> What problem are you having with "&nbsp;"? I didn't realize it's not valid
> XHTML. Should it be "&#160;" instead?
>
> --
> Hector

That was my understanding. Being based on XML, I understood that the
only entities defined in XHTML were those defined in XML -- &lt;, &gt;
&quot; and &apos;.

The few times (a while ago) that I tried to parse XHTML documents with
various parsers, they would not work unless they used &#160;/&#xA0;
for non-breaking spaces rather than &nbsp;. That is consistent with
the error I saw in Firefox. I have read documents on the web how you
can define your own entities in an XML document to add &nbsp;, but
I've also read that you cannot extend the XHTML doctype.

Andrew

Reply via email to