Some more bugs when using XHTML

My last commit was just the tip of the iceberg: I found two other issues with XHTML strict mode and Firefox. The IE part is guessed, but probably not necessary. (Afaik IE doesn’t have an XHTML mode. Maybe someday. Probably not.)