cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean Pierre LeJacq <jplej...@quoininc.com>
Subject Re: [blocks.serializers] XHtmlSerializer bugfixes and improvements
Date Sun, 07 Nov 2004 01:37:20 GMT
On Sun, 7 Nov 2004, Wojciech Gdela wrote:

> Recently I've found discussion about IE problems with empty textarea
> tags in XHtml notation (ie. <textarea name="foo"/>)
> [http://thread.gmane.org/gmane.text.xml.cocoon.devel/33345]. There are
> also problems with other tags, here is a snippet of code:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <body>
>        <a name="foo"/> This text is supposed not to be a link.
>        <div style="text-decoration: underline"/> This text shouldn't be
> underlined
> <body>
> </html>
>
> In order to have this work in IE you have to add closing tags:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <body>
>        <a name="foo"></a> This text is not a link.
>        <div style="text-decoration: underline"></div> This text is not
> underlined
> <body>
> </html>

> ...snip...

IMHO, it is bad idea to hardcode work arounds for broken browsers.

I would prefer a serializer that works to the standard and either
provide an optional parameter asking for IE workarounds or a
transformer that applys the workarounds prior to serialization.

-- 
JP



Mime
View raw message