You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Andreas Hartmann <an...@apache.org> on 2004/10/06 15:11:50 UTC

[blocks.serializers] XHTMLEncoder, ' and Internet Explorer

Hi Cocoon developers,

more info about the problem:
http://nagoya.apache.org/eyebrowse/BrowseList?listName=cocoon-users@xml.apache.org&by=thread&from=896083

Short description:

The XMLEncoder encodes ' as &apos;
This behaviour is inherited by the XHTMLEncoder, but
overridden by the HTMLEncoder.

MS Internet Explorer does not expand the &apos; entity but
shows the string "&apos;" instead on the web page.
That's why the XHTMLSerializer is not compatible with IE.


Would it be useful to add the special treatment of the
' character to the XHTMLSerializer too? Or should I rather
use my own serializer class?


Thanks in advance,
-- Andreas



Re: [blocks.serializers] XHTMLEncoder, ' and Internet Explorer

Posted by Jean Pierre LeJacq <jp...@quoininc.com>.
On Wed, 6 Oct 2004, Andreas Hartmann wrote:

> The XMLEncoder encodes ' as &apos;
> This behaviour is inherited by the XHTMLEncoder, but
> overridden by the HTMLEncoder.
>
> MS Internet Explorer does not expand the &apos; entity but
> shows the string "&apos;" instead on the web page.
> That's why the XHTMLSerializer is not compatible with IE.
>
>
> Would it be useful to add the special treatment of the
> ' character to the XHTMLSerializer too? Or should I rather
> use my own serializer class?

I don't recommend either approach.  What would be best is an option
to the existing seralializer to select either string or numeric
values for entities.

-- 
JP