Unfortunately, XHTML isn't really well supported by browsers (and IE in
particular). For that reason, XHTML websites are usually served as
"text/html" (AKA "tag soup").
This is also why XHTML should be avoided for regular websites and HTML
be used instead.[1]
However, despite my earlier reservations[2], TiddlyWiki being XHTML
actually makes sense. That's because proper XHTML enables external tools
(like r4tw[3]) to parse TW documents as XML.
As for the original issue, I believe there's nothing to fix because
TiddlyWiki is to be served as HTML, not as XHTML.
-- F.
[1] some background information on this contentious issue:
http://www.webdevout.net/articles/beware-of-xhtml
http://hixie.ch/advocacy/xhtml
http://www.webstandards.org/learn/articles/askw3c/oct2003/
[2] http://trac.tiddlywiki.org/ticket/411
[3] http://randomibis.com/r4tw/
I'm not sure whether there have been any significant improvements on IE7
with regards to XHTML handling (though I doubt it).
Either way, TiddlyWiki has to care about IE6, since it's still used by a
large number of people (which is unfortunate, of course).
> I know, but isn't it worse sending XHTML out as text/html?
From a pragmatic perspective, no; it's the only way XHTML works
cross-browser.
> the use of the non-standard (but nevertheless-implemented-by-most-browsers)
> innerHTML is probably a Bad Idea [...] It is after all just a shortcut
> and you can get the same behaviour with createElement /
> createTextNode.
I've had the same qualms, and did some thorough research on this issue.
I still think innerHTML is evil, but it's a necessary evil, particularly
in the context of TW (not least because using DOM methods would likely
require a lot more code). I can't go into the details now, but here's a
good (and concise) overview of the issue:
http://www.dustindiaz.com/innerhtml-vs-dom-methods/
> PS: I'm sure Google Groups will strip out my non-ASCII characters from
> the above post. Oh well.
I guess it didn't - yay! :)
-- F.