[dev] RFC: Horde_Form Rewrite's XHTML Output

Matt Warden mwarden at gmail.com
Sun Aug 7 11:34:00 PDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Patrice Levesque wrote:
>>>Also these is a blank line before XHTML output. It shoudn't be there.
>>
>>I am not seeing this. Anyway, I think this only matters when using the
>><?xml declaration.
> 
> 
> MSIE sees the very first line of a document as a rendering engine
> switch; a <!DOCTYPE> declaration in the very first line makes MSIE use
> the right box model and behave more like a modern web browser should.
> 
> See:
> http://msdn.microsoft.com/library/en-us/dnie60/html/cssenhancements.asp

Apparently I was confusing it with this
(http://www.quirksmode.org/index.html?/css/quirksmode.html):

"In Explorer 6 Windows, Microsoft implemented one extra rule: if a
doctype that triggers strict mode is preceded by an xml prolog, the
page shows in quirks mode. This was done to allow web developers to
achieve valid pages (which require a doctype) but nonetheless stay in
quirks mode.

This is the xml prolog. You should put it on the very first line of
your document, before the doctype."

Anyway, I have no idea where that new line is coming from. I moved the
 DOCTYPE declaration to the top of the page in the test. Horde_Form
doesn't handle the output of DOCTYPE, so this is just an artifact of
the test.

Thanks,

- --
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFC9lQYAQ0d4HGyPE8RAuDuAJ922EXALiemScpmTlsoS9DF2qQYcQCfQv6n
lLtvfi04g8RVpgWpYgcw9Ic=
=SUun
-----END PGP SIGNATURE-----


More information about the dev mailing list