basically any tag that can
have content in html you had better close the html way (<tag></tag>),
or IE will see it as unclosed and will not display the rest of the
page after the tag (or do something else unexpected). Not a bug in IE
(this time), which is correctly parsing the file as html.

... which is obviously not the correct thing to do when it's XHTML.

Not correct, of course, but AFAIK it's a very common hack indeed.

If the goal is to produce XHTML that will work as text/html, have you considered using one of the myriad templating libraries? IIRC a lot (if not most) of them support "HTMLish" output for precisely that reason.

On Thu, 03 Sep 2009 12:09:22 -0700, Stefan Behnel <stefan...@behnel.de> wrote:

Lee wrote:
basically any tag that can
have content in html you had better close the html way (<tag></tag>),
or IE will see it as unclosed and will not display the rest of the
page after the tag (or do something else unexpected). Not a bug in IE
(this time), which is correctly parsing the file as html.

... which is obviously not the correct thing to do when it's XHTML.

Stefan



--
Rami Chowdhury
"Never attribute to malice that which can be attributed to stupidity" -- Hanlon's Razor
408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD)
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to