A UI question, I think
What exactly is happening when I switch from Normal to HTML view? Is there some sort of code-fixing that goes on when I switch from one to the other?
When you switch from HTML to Normal mode, we take all the HTML text and shove it into the WYSIWYG editor. That editor does it's best to display HTML no matter how bad it is but some things (especially multiple <HTML> tags) are just too much for it to deal with and it fails to load anything.
By the way, I think the normal view is one of the best WYSIWYG HTML editors I've seen to date. DreamWeaver is pretty good too, but that about rounds out the entire list.
Aah, that explains why my content's HTML degrades when I keep switching back and forth. :/
Yes, it's hard work, because it's a Microsoft component to which they have no source code. There has been mention in the past of "cleaning up" the resulting output of the WYSIWYG editor. I presume that means tossing out the Microsoft component and rolling their own. It's a minor annoyance to me, because I pride myself on using XHTML for my entire site -- except my CityDesk maintained bits, unfortunately.
We'd still use the Microsoft component, we just wouldn't trust it to generate the HTML -- instead we'd "walk the DOM" (basically looking inside the components own data structures) and generate an XHTML representation of what we find there.
Fog Creek Home