[Seaside] xml & ie

Julian Fitzell julian at beta4.com
Sat May 22 18:27:42 CEST 2004

radoslav hodnicak wrote:
> I've found out that using the xml declaration (<?xml version="1.0"
> encoding="UTF-8"?>) when generating pages throws internet exploder into
> "quirks" mode. After removing it, IE started to behave more sanely with
> respect to rendering (i.e. it was working in standard mode). Is this even
> necessary? We are producing xhtml, not xml anyway.

Hmm... don't understand that last statement.  XHTML *is* XML, just a 
specific set of XML tags.  The spec says that XHTML authors are 
"strongly encouraged" to use an XML declaration on their pages but that 
it is not required unless you are using an encoding other than UTF-8 or 

There are two reasons why I added it:

1) The W3C xhtml validity checker complains if it isn't there
2) If we don't tell the browser to use UTF-8, extended characters don't 
work properly or consistently.  You can convert them to entities but 
that's a pain and it doesn't solve the problem of people putting 
accented characters into text fields.  Without the xml declaration 
there, I was was getting inconsistent data submitted from different 
browsers and when displayed back to the user the browser wouldn't render 
them properly.

Presumably we could look at some headers to help solve the submission 
problem, but then we'd need to be able to do arbitrary character set 
conversion...  we could probably just make the xml declaration 
configurable so people can turn it off or change the character set...


More information about the Seaside mailing list